@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, ReleaseUnused
address, 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, zero
public 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)
MemoryPool
Allocate
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)
MemoryPool
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 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 MemoryPool
public void Free(@Cast(value="uint8_t*") BytePointer buffer, @Cast(value="int64_t") long size)
MemoryPool
Free
in class MemoryPool
buffer
- 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 MemoryPool
public 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()
MemoryPool
bytes_allocated
in class MemoryPool
@Cast(value="int64_t") public long max_memory()
MemoryPool
max_memory
in class MemoryPool
@StdString public String backend_name()
MemoryPool
backend_name
in class MemoryPool
Copyright © 2022. All rights reserved.