Lines Matching refs:length
36 /** {@code >= 0, <= bytes.length}; size computed as
45 * @param end {@code >= start, <= bytes.length;} end index of
61 if (end > bytes.length) {
62 throw new IllegalArgumentException("end > bytes.length");
76 this(bytes, 0, bytes.length);
207 if ((out.length - offset) < size) {
208 throw new IndexOutOfBoundsException("(out.length - offset) < " +
314 public int read(byte[] arr, int offset, int length) {
315 if ((offset + length) > arr.length) {
316 length = arr.length - offset;
320 if (length > maxLength) {
321 length = maxLength;
324 System.arraycopy(bytes, cursor + start, arr, offset, length);
325 cursor += length;
326 return length;