src/org/jnetpcap/nio/JMemoryPool.java
public synchronized int allocate(int size) {

			/* Align to an even boundary */
			size += (size % BUS_WIDTH);

			if (size > this.available) {
				return -1;
			}
			final int allocated = this.current;
			this.available -= size;
			this.current += size;

			return allocated;
		}
/**
		 * Allocates requested size number of bytes from existing memory block.
		 * 
		 * @param size
		 *          number of bytes
		 * @return offset into the buffer where the allocated memory begins
		 */
Allocates requested size number of bytes from existing memory block.

@param size
number of bytes
@return offset into the buffer where the allocated memory begins
Allocates requested size number of bytes from existing memory block . @param size number of bytes @return offset into the buffer where the allocated memory begins
public synchronized int allocate(int size) {
			/* Align to an even boundary */
			size += (size % BUS_WIDTH);
			if (size > this.available) {
				return -1;
			}
			final int allocated = this.current;
			this.available -= size;
			this.current += size;
			return allocated;
		}
public synchronized int allocate ( int size ) { /* Align to an even boundary */ size += ( size % BUS_WIDTH ) ; if ( size > this . available ) { return - 1 ; } final int allocated = this . current ; this . available -= size ; this . current += size ; return allocated ; }
Allocates requested size number of bytes from existing memory block.
Allocates requested size number of bytes from existing memory block .