Lines Matching refs:buf
120 ByteBuffer buf = bufs[i];
121 int pos = buf.position();
122 int lim = buf.limit();
126 vec.setBuffer(iov_len, buf, pos, rem);
129 if (!(buf instanceof DirectBuffer)) {
131 shadow.put(buf);
134 buf.position(pos); // temporarily restore position in user buffer
135 buf = shadow;
139 vec.putBase(iov_len, ((DirectBuffer)buf).address() + pos);
154 ByteBuffer buf = vec.getBuffer(j);
158 buf.position(pos + n);
250 ByteBuffer buf = bufs[i];
251 if (buf.isReadOnly())
253 int pos = buf.position();
254 int lim = buf.limit();
259 vec.setBuffer(iov_len, buf, pos, rem);
262 if (!(buf instanceof DirectBuffer)) {
265 buf = shadow;
269 vec.putBase(iov_len, ((DirectBuffer)buf).address() + pos);
285 ByteBuffer buf = vec.getBuffer(j);
290 buf.position(pos + n);
293 buf.put(shadow);