Lines Matching refs:length
105 _otherSide = (args.length == 1) ? (PipedConnection)args[0] : null; in PipedConnection()
121 …if(DEBUG) System.err.println("##### PipedConnection.receive - bytes:" + aData.length + " at:" + _o… in receive()
123 while(bytesWritten < aData.length) { in receive()
125 while(_out == (_in - 1) || (_in == 0 && _out == _buffer.length - 1)) { in receive()
141 bytes = Math.min(aData.length - bytesWritten, _in - _out - 1); in receive()
147 bytes = Math.min(aData.length - bytesWritten, _buffer.length - _out); in receive()
150 bytes = Math.min(aData.length - bytesWritten, _buffer.length - _out - 1); in receive()
158 if(_out >= _buffer.length) in receive()
192 System.arraycopy(_buffer, _in, aReadBytes[0], aReadBytes[0].length - nBytesToRead, bytes); in read()
198 int bytes = Math.min(nBytesToRead, _buffer.length - _in); in read()
200 System.arraycopy(_buffer, _in, aReadBytes[0], aReadBytes[0].length - nBytesToRead, bytes); in read()
204 if(_in >= _buffer.length) in read()
210 byte tmp[] = new byte[aReadBytes[0].length - nBytesToRead]; in read()
211 System.arraycopy(aReadBytes[0], 0, tmp, 0, tmp.length); in read()
216 return aReadBytes[0].length; in read()