src/org/jnetpcap/nio/JMemory.java
protected int transferTo(byte[] buffer,
			int srcOffset,
			int length,
			int dstOffset) {

		if (buffer == null) {
			throw new NullPointerException();
		}

		if (dstOffset < 0 || dstOffset + length > buffer.length) {
			throw new ArrayIndexOutOfBoundsException();
		}

		return transferTo0(physical,
				buffer,
				check(srcOffset, length, physical),
				length,
				dstOffset);
	}
/**
	 * Copies data from memory to byte array.
	 * 
	 * @param buffer
	 *          destination buffer
	 * @param srcOffset
	 *          starting offset in memory
	 * @param length
	 *          number of bytes to copy
	 * @param dstOffset
	 *          starting offset in byte array
	 * @return number of bytes copied
	 */
Copies data from memory to byte array.


Copies data from memory to byte array .
protected int transferTo(byte[] buffer,
			int srcOffset,
			int length,
			int dstOffset) {
		if (buffer == null) {
			throw new NullPointerException();
		}
		if (dstOffset < 0 || dstOffset + length > buffer.length) {
			throw new ArrayIndexOutOfBoundsException();
		}
		return transferTo0(physical,
				buffer,
				check(srcOffset, length, physical),
				length,
				dstOffset);
	}
protected int transferTo ( byte [ ] buffer , int srcOffset , int length , int dstOffset ) { if ( buffer == null ) { throw new NullPointerException ( ) ; } if ( dstOffset < 0 || dstOffset + length > buffer . length ) { throw new ArrayIndexOutOfBoundsException ( ) ; } return transferTo0 ( physical , buffer , check ( srcOffset , length , physical ) , length , dstOffset ) ; }
Copies data from memory to byte array.
Copies data from memory to byte array .