@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.
|
_capacity, Copy, Copy, data, Equals, Equals, FromString, FromString, FromString, FromString, FromString, FromString, get, is_mutable, mutable_data, parent, size, ToHexString, ToString, ZeroPaddingaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ResizableBuffer(Pointer p)
Pointer.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 © 2020. All rights reserved.