@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class LoggingMemoryPool extends MemoryPool
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
LoggingMemoryPool(MemoryPool pool) |
LoggingMemoryPool(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Allocate(long size,
byte[] out) |
Status |
Allocate(long size,
ByteBuffer out) |
Status |
Allocate(long size,
BytePointer out) |
Status |
Allocate(long size,
PointerPointer out)
Allocate a new memory region of at least size bytes.
|
String |
backend_name()
The name of the backend used by this MemoryPool (e.g.
|
long |
bytes_allocated()
The number of bytes that were allocated and not yet free'd through
this allocator.
|
void |
Free(byte[] buffer,
long size) |
void |
Free(ByteBuffer buffer,
long size) |
void |
Free(BytePointer buffer,
long size)
Free an allocated region.
|
long |
max_memory()
Return peak memory allocation in this memory pool
|
Status |
Reallocate(long old_size,
long new_size,
byte[] ptr) |
Status |
Reallocate(long old_size,
long new_size,
ByteBuffer ptr) |
Status |
Reallocate(long old_size,
long new_size,
BytePointer ptr) |
Status |
Reallocate(long old_size,
long new_size,
PointerPointer ptr)
Resize an already allocated memory section.
|
CreateDefault, ReleaseUnusedaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic LoggingMemoryPool(Pointer p)
Pointer(Pointer).public LoggingMemoryPool(MemoryPool pool)
@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") PointerPointer out)
MemoryPoolAllocate in class MemoryPool@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") @ByPtrPtr BytePointer out)
Allocate in class MemoryPool@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer out)
Allocate in class MemoryPool@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") @ByPtrPtr byte[] out)
Allocate in class MemoryPool@ByVal public Status Reallocate(@Cast(value="int64_t") long old_size, @Cast(value="int64_t") long new_size, @Cast(value="uint8_t**") PointerPointer ptr)
MemoryPoolReallocate in class MemoryPool@ByVal public Status Reallocate(@Cast(value="int64_t") long old_size, @Cast(value="int64_t") long new_size, @Cast(value="uint8_t**") @ByPtrPtr BytePointer ptr)
Reallocate in class MemoryPool@ByVal public Status Reallocate(@Cast(value="int64_t") long old_size, @Cast(value="int64_t") long new_size, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer ptr)
Reallocate in class MemoryPool@ByVal public Status Reallocate(@Cast(value="int64_t") long old_size, @Cast(value="int64_t") long new_size, @Cast(value="uint8_t**") @ByPtrPtr byte[] ptr)
Reallocate in class MemoryPoolpublic void Free(@Cast(value="uint8_t*") BytePointer buffer, @Cast(value="int64_t") long size)
MemoryPoolFree in class MemoryPoolbuffer - Pointer to the start of the allocated memory regionsize - Allocated size located at buffer. An allocator implementation
may use this for tracking the amount of allocated bytes as well as for
faster deallocation if supported by its backend.public void Free(@Cast(value="uint8_t*") ByteBuffer buffer, @Cast(value="int64_t") long size)
Free in class MemoryPoolpublic void Free(@Cast(value="uint8_t*") byte[] buffer, @Cast(value="int64_t") long size)
Free in class MemoryPool@Cast(value="int64_t") public long bytes_allocated()
MemoryPoolbytes_allocated in class MemoryPool@Cast(value="int64_t") public long max_memory()
MemoryPoolmax_memory in class MemoryPool@StdString public String backend_name()
MemoryPoolbackend_name in class MemoryPoolCopyright © 2022. All rights reserved.