java.lang.Object
org.jnetpcap.internal.ArrayAllocator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The Constant DEFAULT_BLOCK_SIZE. -
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_BLOCK_SIZE
public static final int DEFAULT_BLOCK_SIZEThe Constant DEFAULT_BLOCK_SIZE.- See Also:
-
-
Constructor Details
-
ArrayAllocator
public ArrayAllocator()Instantiates a new array allocator.
-
-
Method Details
-
allocate
public int allocate(int len) Allocate.- Parameters:
len
- the len- Returns:
- the int
-
array
public byte[] array()Array.- Returns:
- the byte[]
-
copy
-
length
public int length()Length.- Returns:
- the int
-
offset
public int offset()Offset.- Returns:
- the int
-