@Namespace(value="arrow") @Properties(inherit=arrow.class) public class MemoryPool extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
MemoryPool(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.
|
static MemoryPool |
CreateDefault()
\brief EXPERIMENTAL.
|
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.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic MemoryPool(Pointer p)
Pointer(Pointer).@UniquePtr public static MemoryPool CreateDefault()
@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") PointerPointer out)
@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") @ByPtrPtr BytePointer out)
@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer out)
@ByVal public Status Allocate(@Cast(value="int64_t") long size, @Cast(value="uint8_t**") @ByPtrPtr byte[] out)
@ByVal public Status Reallocate(@Cast(value="int64_t") long old_size, @Cast(value="int64_t") long new_size, @Cast(value="uint8_t**") PointerPointer ptr)
@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)
@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)
@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)
public void Free(@Cast(value="uint8_t*") BytePointer buffer, @Cast(value="int64_t") long size)
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)
@Cast(value="int64_t") public long bytes_allocated()
@Cast(value="int64_t") public long max_memory()
@StdString public String backend_name()
Copyright © 2021. All rights reserved.