@Namespace(value="arrow") @Properties(inherit=arrow.class) public class ResizableBuffer extends MutableBuffer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ResizableBuffer(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Reserve(long new_capacity)
Ensure that buffer has enough memory allocated to fit the indicated
capacity (and meets the 64 byte padding requirement in Layout.md).
|
Status |
Resize(long new_size) |
Status |
Resize(long new_size,
boolean shrink_to_fit)
Change buffer reported size to indicated size, allocating memory if
necessary.
|
_address, _capacity, Copy, CopySlice, CopySlice, data, device, Equals, Equals, FromString, FromString, get, GetReader, GetWriter, is_cpu, is_mutable, memory_manager, mutable_address, mutable_data, parent, size, ToHexString, ToString, View, ViewOrCopy, ZeroPaddingaddress, 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, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ResizableBuffer(Pointer p)
Pointer(Pointer).@ByVal public Status Resize(@Cast(value="const int64_t") long new_size, @Cast(value="bool") boolean shrink_to_fit)
new_size - The new size for the buffer.shrink_to_fit - Whether to shrink the capacity if new size < current sizeCopyright © 2021. All rights reserved.