src/org/jnetpcap/nio/JMemoryPool.java
public synchronized int duplicate(JMemory src, JMemory dst) {
		final Block block = getBlock(src.size);
		final int offset = block.allocate(src.size);

		src.transferTo(block, 0, src.size, offset);
		dst.peer(block, offset, src.size);

		return src.size;
	}
/**
	 * Transfers contents from src to newly allocated memory and peers dst with
	 * that the new memory. Any previously held resources by dst are freed.
	 * 
	 * @param src
	 *          source memory to copy from
	 * @param dst
	 *          destination object to peer with new memory containing copy of
	 *          memory pointed to by src
	 * @return number of bytes duplicated
	 */
Transfers contents from src to newly allocated memory and peers dst with
that the new memory. Any previously held resources by dst are freed.

@param src
source memory to copy from
@param dst
destination object to peer with new memory containing copy of
memory pointed to by src
@return number of bytes duplicated
Transfers contents from src to newly allocated memory and peers dst with that the new memory . Any previously held resources by dst are freed . @param src source memory to copy from @param dst destination object to peer with new memory containing copy of memory pointed to by src @return number of bytes duplicated
public synchronized int duplicate(JMemory src, JMemory dst) {
		final Block block = getBlock(src.size);
		final int offset = block.allocate(src.size);
		src.transferTo(block, 0, src.size, offset);
		dst.peer(block, offset, src.size);
		return src.size;
	}
public synchronized int duplicate ( JMemory src , JMemory dst ) { final Block block = getBlock ( src . size ) ; final int offset = block . allocate ( src . size ) ; src . transferTo ( block , 0 , src . size , offset ) ; dst . peer ( block , offset , src . size ) ; return src . size ; }
Transfers contents from src to newly allocated memory and peers dst with
 that the new memory.
Transfers contents from src to newly allocated memory and peers dst with that the new memory .