Lines Matching refs:length
46 * We can return the same byte[] for 0 length arrays.
136 public void write(byte[] fromBuf, int offset, int length)
139 writeFast(fromBuf, offset, length);
179 if (len + 1 > buf.length)
192 int needed = len + fromBuf.length - buf.length;
196 System.arraycopy(fromBuf, 0, buf, len, fromBuf.length);
197 len += fromBuf.length;
205 public final void writeFast(byte[] fromBuf, int offset, int length) {
207 int needed = len + length - buf.length;
211 System.arraycopy(fromBuf, offset, buf, len, length);
212 len += length;
236 * Returns the length used in the internal buffer, i.e., the offset at
239 * @return the buffer length.
254 int needed = len + sizeNeeded - buf.length;
272 int bump = (bumpLen > 0) ? bumpLen : buf.length;
274 byte[] toBuf = new byte[buf.length + needed + bump];