Lines Matching refs:buf
81 int bytesInCompletePacket(ByteBuffer buf) throws SSLException {
87 if (buf.remaining() < 5) {
91 int pos = buf.position();
92 byte byteZero = buf.get(pos);
109 ProtocolVersion.valueOf(buf.get(pos + 1), buf.get(pos + 2));
130 len = ((buf.get(pos + 3) & 0xff) << 8) +
131 (buf.get(pos + 4) & 0xff) + headerSize;
144 ((buf.get(pos + 2) == 1) || buf.get(pos + 2) == 4)) {
147 ProtocolVersion.valueOf(buf.get(pos + 3), buf.get(pos + 4));
166 len = ((byteZero & mask) << 8) + (buf.get(pos + 1) & 0xff) +
258 // NOTE: here we use the InputRecord.buf because I did not find
267 if (remainingLen > buf.length) {
277 checkMacTags(contentType(), buf, 0, remainingLen, signer, true);
352 void writeBuffer(OutputStream s, byte [] buf, int off, int len)
358 (ByteBuffer.allocate(len).put(buf, 0, len).flip());