Lines Matching refs:buf
220 ByteBuffer buf = ByteBuffer.allocateDirect(100);
223 ch.read(buf, 0L, (Void)null, new CompletionHandler<Integer,Void>() {
248 ByteBuffer buf = ByteBuffer.allocateDirect(100);
252 ch.read(buf, 0L).get();
262 ch.write(buf, 0L).get();
386 ByteBuffer buf = genBuffer();
387 int n = buf.remaining();
388 writeFully(ch, buf, size);
399 ByteBuffer[] buf = new ByteBuffer[nwriters];
402 buf[i] = genBuffer();
409 result[i] = ch.write(buf[i], position[i]);
535 byte[] buf = new byte[size];
538 ByteBuffer bb = ByteBuffer.allocateDirect(buf.length);
539 bb.put(buf);
543 return ByteBuffer.wrap(buf);