Buffers.
Buffer
| Modifier and Type | Field and Description |
|---|---|
| public static final MemoryManager | DEFAULT_MEMORY_MANAGER
The default |
| Modifier and Type | Method and Description |
|---|---|
| public E | |
| public E | Returns: allocatedBuffer.the min size)Buffer size to be allocated.Allocated |
| public E | Returns: reallocatedBuffer.old oldBuffer, int Buffer to be reallocated.new newSize)Buffer required size.Reallocate |
| public void | |
| public boolean | willAllocateDirect(int size)
Return true if next |
| DEFAULT_MEMORY_MANAGER | back to summary |
|---|---|
| public static final MemoryManager<E extends Buffer> DEFAULT_MEMORY_MANAGER
The default The default may be changed by one of two methods:
| |
| allocate | back to summary |
|---|---|
| public E allocate(int size) Allocated | |
| allocateAtLeast | back to summary |
|---|---|
| public E allocateAtLeast(int size) Allocated | |
| reallocate | back to summary |
|---|---|
| public E reallocate(E oldBuffer, int newSize) Reallocate | |
| release | back to summary |
|---|---|
| public void release(E buffer) Release
| |
| willAllocateDirect | back to summary |
|---|---|
| public boolean willAllocateDirect(int size) Return true if next | |