Lines Matching defs:buffer
42 * The piped input stream contains a buffer,
68 * The default size of the pipe's circular input buffer.
77 * The circular buffer into which incoming data is placed.
80 protected byte buffer[];
83 * The index of the position in the circular buffer at which the
85 * piped output stream. <code>in<0</code> implies the buffer is empty,
86 * <code>in==out</code> implies the buffer is full
92 * The index of the position in the circular buffer at which the next
116 * the pipe's buffer.
121 * @param pipeSize the size of the pipe's buffer.
147 * uses the specified pipe size for the pipe's buffer.
152 * @param pipeSize the size of the pipe's buffer.
164 buffer = new byte[pipeSize];
212 buffer[in++] = (byte)(b & 0xFF);
213 if (in >= buffer.length) {
221 * @param b the buffer into which the data is received
237 nextTransferAmount = buffer.length - in;
241 nextTransferAmount = buffer.length - in;
249 System.arraycopy(b, off, buffer, in, nextTransferAmount);
253 if (in >= buffer.length) {
338 int ret = buffer[out++] & 0xFF;
339 if (out >= buffer.length) {
354 * <code>len</code> exceeds the pipe's buffer size.
360 * @param b the buffer into which the data is read.
363 * @return the total number of bytes read into the buffer, or
395 available = Math.min((buffer.length - out), (in - out));
397 available = buffer.length - out;
404 System.arraycopy(buffer, out, b, off + rlen, available);
409 if (out >= buffer.length) {
437 return buffer.length;
441 return in + buffer.length - out;