Lines Matching refs:buf
177 ByteBuffer buf;
316 r.buf = dst;
341 r.result = engine.unwrap (unwrap_src, r.buf);
359 r.buf = realloc (r.buf, true, BufType.APPLICATION);
363 r.buf.flip();
410 dst = (r.buf != dst) ? r.buf: dst;
478 if (r.buf != tmp) {
479 tmp = r.buf;
510 public int read (byte[] buf, int off, int len) throws IOException {
525 bbuf = r.buf== bbuf? bbuf: r.buf;
533 /* copy as much as possible from buf into users buf */
537 bbuf.get (buf, off, len);
570 bbuf = r.buf==bbuf? bbuf: r.buf;
586 public int read (byte[] buf) throws IOException {
587 return read (buf, 0, buf.length);
608 ByteBuffer buf;
613 buf = allocate(BufType.APPLICATION);
629 int l = len > buf.capacity() ? buf.capacity() : len;
630 buf.clear();
631 buf.put (b, off, l);
634 buf.flip();
635 WrapperResult r = sendData (buf);
654 buf.clear();
656 r = wrapper.wrapAndSend (buf);