Home | History | Annotate | Download | only in util

Lines Matching refs:buf

52     public void consume(byte[] buf, int offset, int length) throws IOException {
53 mOut.write(buf, offset, length);
57 public void consume(ByteBuffer buf) throws IOException {
58 if (!buf.hasRemaining()) {
62 if (buf.hasArray()) {
64 buf.array(),
65 buf.arrayOffset() + buf.position(),
66 buf.remaining());
67 buf.position(buf.limit());
69 byte[] tmp = new byte[Math.min(buf.remaining(), MAX_READ_CHUNK_SIZE)];
70 while (buf.hasRemaining()) {
71 int chunkSize = Math.min(buf.remaining(), tmp.length);
72 buf.get(tmp, 0, chunkSize);