Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:length

68      * Reads at most {@code length} bytes from this stream and stores them in
74 * @param length the maximum number of bytes to store in {@code b}.
76 * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code length < 0}, or if {@code
77 * offset + length} is greater than the length of {@code b}.
81 public int read(byte[] b, int offset, int length) throws IOException {
85 if ((offset | length) < 0 || length > b.length - offset) {
86 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
88 return mSocket.read(b, offset, length);