src/org/jnetpcap/packet/JMemoryPacket.java
public int peerStateAndData(JBuffer buffer, int offset) {

		state.peerTo(buffer, offset, State.sizeof(0));
		int o = state.peerTo(buffer, offset, State.sizeof(state.getHeaderCount()));
		o += super.peer(buffer, offset + o, header.caplen());

		return o;
	}
/**
	 * Peers the contents of the buffer directly with this packet. No copies are
	 * performed but the packet state and data are expected to be contained within
	 * the buffer with a certain layout as described below:
	 * <p>
	 * Supplied buffer layout expected:
	 * 
	 * <pre>
	 * +-----+----+
	 * |State|Data|
	 * +-----+----+
	 * </pre>
	 * 
	 * </p>
	 * 
	 * @param buffer
	 *          buffer containing packet header, state and data
	 * @param offset
	 *          starting offset into the buffer
	 * @return number of bytes peered
	 */
Peers the contents of the buffer directly with this packet. No copies are
performed but the packet state and data are expected to be contained within
the buffer with a certain layout as described below:

Supplied buffer layout expected.


|State|Data|




@param buffer
buffer containing packet header, state and data
@param offset
starting offset into the buffer
@return number of bytes peered
Peers the contents of the buffer directly with this packet . No copies are performed but the packet state and data are expected to be contained within the buffer with a certain layout as described below : Supplied buffer layout expected . |State|Data| @param buffer buffer containing packet header state and data @param offset starting offset into the buffer @return number of bytes peered
public int peerStateAndData(JBuffer buffer, int offset) {
		state.peerTo(buffer, offset, State.sizeof(0));
		int o = state.peerTo(buffer, offset, State.sizeof(state.getHeaderCount()));
		o += super.peer(buffer, offset + o, header.caplen());
		return o;
	}
public int peerStateAndData ( JBuffer buffer , int offset ) { state . peerTo ( buffer , offset , State . sizeof ( 0 ) ) ; int o = state . peerTo ( buffer , offset , State . sizeof ( state . getHeaderCount ( ) ) ) ; o += super . peer ( buffer , offset + o , header . caplen ( ) ) ; return o ; }
Peers the contents of the buffer directly with this packet.
Peers the contents of the buffer directly with this packet .