src/org/jnetpcap/packet/JMemoryPacket.java
public int transferStateAndDataFrom(JPacket packet) {
		int len = packet.state.size() + packet.size();
		JBuffer mem = getMemoryBuffer(len);

		int o = packet.state.transferTo(mem, 0, packet.state.size(), 0);
		o += packet.transferTo(mem, 0, packet.size(), o);

		return o;
	}
/**
	 * Copies both state and data from supplied packet to this packet by
	 * performing a deep copy of the contents of the buffer into packet's internal
	 * memory buffer if that buffer is large enough, otherwise a new buffer is
	 * allocated. Both packet's state and data are then peered with the internal
	 * buffer containing the copy of the supplied buffer
	 * 
	 * @param packet
	 *          source packet
	 * @return number of bytes copied
	 */
Copies both state and data from supplied packet to this packet by
performing a deep copy of the contents of the buffer into packet's internal
memory buffer if that buffer is large enough, otherwise a new buffer is
allocated. Both packet's state and data are then peered with the internal
buffer containing the copy of the supplied buffer

@param packet
source packet
@return number of bytes copied
Copies both state and data from supplied packet to this packet by performing a deep copy of the contents of the buffer into packet ' s internal memory buffer if that buffer is large enough otherwise a new buffer is allocated . Both packet ' s state and data are then peered with the internal buffer containing the copy of the supplied buffer @param packet source packet @return number of bytes copied
public int transferStateAndDataFrom(JPacket packet) {
		int len = packet.state.size() + packet.size();
		JBuffer mem = getMemoryBuffer(len);
		int o = packet.state.transferTo(mem, 0, packet.state.size(), 0);
		o += packet.transferTo(mem, 0, packet.size(), o);
		return o;
	}
public int transferStateAndDataFrom ( JPacket packet ) { int len = packet . state . size ( ) + packet . size ( ) ; JBuffer mem = getMemoryBuffer ( len ) ; int o = packet . state . transferTo ( mem , 0 , packet . state . size ( ) , 0 ) ; o += packet . transferTo ( mem , 0 , packet . size ( ) , o ) ; return o ; }
Copies both state and data from supplied packet to this packet by
 performing a deep copy of the contents of the buffer into packet's internal
 memory buffer if that buffer is large enough, otherwise a new buffer is
 allocated.
Copies both state and data from supplied packet to this packet by performing a deep copy of the contents of the buffer into packet ' s internal memory buffer if that buffer is large enough otherwise a new buffer is allocated .