Lines Matching refs:start
33 /** {@code >= 0}; start index of the slice (inclusive) */
34 private final int start;
37 * {@code end - start} (in the constructor) */
44 * @param start {@code >= 0;} start index of the slice (inclusive)
45 * @param end {@code >= start, <= bytes.length;} end index of
48 public ByteArray(byte[] bytes, int start, int end) {
53 if (start < 0) {
54 throw new IllegalArgumentException("start < 0");
57 if (end < start) {
58 throw new IllegalArgumentException("end < start");
66 this.start = start;
67 this.size = end - start;
91 * @param start {@code >= 0;} start index of the slice (inclusive)
92 * @param end {@code >= start, <= size();} end index of
96 public ByteArray slice(int start, int end) {
97 checkOffsets(start, end);
98 return new ByteArray(bytes, start + this.start, end + this.start);
116 return start + offset;
212 System.arraycopy(bytes, start, out, offset, size);
218 * @param s start offset (inclusive)
236 return bytes[start + off];
247 return bytes[start + off] & 0xff;
324 System.arraycopy(bytes, cursor + start, arr, offset, length);