Lines Matching refs:length
41 len = buffer.length;
51 * @param length the number of bytes to read.
53 public FastInputStream(byte[] buffer, int offset, int length) {
57 len = offset + length;
99 return readFast(toBuf, 0, toBuf.length);
102 public int read(byte[] toBuf, int offset, int length) throws IOException {
104 return readFast(toBuf, offset, length);
136 return readFast(toBuf, 0, toBuf.length);
144 public final int readFast(byte[] toBuf, int offset, int length) {
150 if (length > avail) {
151 length = avail;
153 System.arraycopy(buf, off, toBuf, offset, length);
154 off += length;
155 return length;