src/org/jnetpcap/nio/JMemory.java
public int transferTo(ByteBuffer dst, int srcOffset, int length) {
		if (dst.isDirect()) {
			return transferToDirect(dst, srcOffset, length);
		} else {
			int o = transferTo(dst.array(), srcOffset, length, dst.position());
			dst.position(dst.position() + o);

			return o;
		}
	}
/**
	 * Copies teh contents of this memory to buffer.
	 * 
	 * @param dst
	 *          destination buffer
	 * @param srcOffset
	 *          offset in source
	 * @param length
	 *          number of bytes to copy
	 * @return number of bytes copied
	 */
Copies teh contents of this memory to buffer.

@param dst
destination buffer
@param srcOffset
offset in source
@param length
number of bytes to copy
@return number of bytes copied
Copies teh contents of this memory to buffer . @param dst destination buffer @param srcOffset offset in source @param length number of bytes to copy @return number of bytes copied
public int transferTo(ByteBuffer dst, int srcOffset, int length) {
		if (dst.isDirect()) {
			return transferToDirect(dst, srcOffset, length);
		} else {
			int o = transferTo(dst.array(), srcOffset, length, dst.position());
			dst.position(dst.position() + o);
			return o;
		}
	}
public int transferTo ( ByteBuffer dst , int srcOffset , int length ) { if ( dst . isDirect ( ) ) { return transferToDirect ( dst , srcOffset , length ) ; } else { int o = transferTo ( dst . array ( ) , srcOffset , length , dst . position ( ) ) ; dst . position ( dst . position ( ) + o ) ; return o ; } }
Copies teh contents of this memory to buffer.
Copies teh contents of this memory to buffer .