src/org/jnetpcap/packet/JMemoryPacket.java
public int peerStateAndData(ByteBuffer buffer) throws PeeringException {
		if (buffer.isDirect() == false) {
			throw new PeeringException("unable to peer a non-direct ByteBuffer");
		}
		return peerStateAndData(getMemoryBuffer(buffer), 0);
	}
/**
	 * 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. Position property
	 *          specifies that start within the buffer where to peer the first
	 *          byte.
	 * @return number of bytes peered
	 * @throws PeeringException
	 *           thrown if ByteBuffer is not direct byte buffer type
	 */
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. Position property
specifies that start within the buffer where to peer the first
byte.
@return number of bytes peered
@throws PeeringException
thrown if ByteBuffer is not direct byte buffer type
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 . Position property specifies that start within the buffer where to peer the first byte . @return number of bytes peered @throws PeeringException thrown if ByteBuffer is not direct byte buffer type
public int peerStateAndData(ByteBuffer buffer) throws PeeringException {
		if (buffer.isDirect() == false) {
			throw new PeeringException("unable to peer a non-direct ByteBuffer");
		}
		return peerStateAndData(getMemoryBuffer(buffer), 0);
	}
public int peerStateAndData ( ByteBuffer buffer ) throws PeeringException { if ( buffer . isDirect ( ) == false ) { throw new PeeringException ( "unable to peer a non-direct ByteBuffer" ) ; } return peerStateAndData ( getMemoryBuffer ( buffer ) , 0 ) ; }
Peers the contents of the buffer directly with this packet.
Peers the contents of the buffer directly with this packet .