6768697071727374757677
* * @see org.jnetstream.packet.Packet#getBuffer() */ public BitBuffer getBuffer() throws IOException { final BitBuffer buffer = getRecordBitBuffer(); buffer.position(buffer.position() + PcapPacketRecord.HEADER_LENGTH * 8); return buffer; } /*
125126127128129130131132133134135
Header last = headers.getHeader(headers.size() - 1); int p = b.position() + last.getOffset() + last.getLength(); p = (p > b.limit() ? b.limit() : p); // Now position the buffer b.position(p); return b; } /*
144145146147148149150151152153154
*/ public BitBuffer getBuffer() throws IOException { final BitBuffer b = handle.getBitBuffer(); if (bits != b) { b.position(b.position() + getRecordHeaderLength()); bits = BitBuffer.wrap(b.toByteBuffer()); } return bits; }
208209210211212213214215216217218
if (bits != null) { return bits; } final BitBuffer b = this.handle.getBitBuffer(); this.offset = b.position(); return b; } /**
5859606162636465666768
* * @see org.jnetstream.packet.Packet#getBuffer() */ public BitBuffer getBuffer() throws IOException { final BitBuffer b = getRecordBitBuffer(); b.position(b.position() + SnoopPacketRecord.HEADER_LENGTH * 8); return b; } /*
121122123124125126127128129130131
} BitBuffer b = getBuffer(); Header last = headers.getHeader(headers.size() - 1); int p = b.position() + last.getOffset() + last.getLength(); p = (p > b.limit() ? b.limit() : p); // Now position the buffer b.position(p);