Package pcap.common.memory
Interface MemoryAllocator
@Inclubating public interface MemoryAllocator
- Author:
- Ardika Rommy Sanjaya
-
Field Summary
Fields Modifier and Type Field Description static boolean
UNCHECKED
static boolean
UNSAFE_BUFFER
-
Method Summary
Modifier and Type Method Description Memory
allocate(int capacity)
Memory
allocate(int capacity, boolean checking)
Memory
allocate(int capacity, int maxCapacity)
Memory
allocate(int capacity, int maxCapacity, boolean checking)
Memory
allocate(int capacity, int maxCapacity, int readerIndex, int writerIndex)
Memory
allocate(int capacity, int maxCapacity, int readerIndex, int writerIndex, boolean checking)
void
close()