@Name(value="arrow::Buffer") @NoOffset @Properties(inherit=arrow.class) public class ArrowBuffer extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ArrowBuffer(ArrowBuffer parent,
long offset,
long size)
An offset into data that is owned by another buffer, but we want to be
able to retain a valid pointer to it even after other shared_ptr's to the
parent buffer have been destroyed
This method makes no assertions about alignment or padding of the buffer but
in general we expected buffers to be aligned and padded to 64 bytes.
|
ArrowBuffer(byte[] data,
long size) |
ArrowBuffer(ByteBuffer data,
long size) |
ArrowBuffer(BytePointer data,
long size)
\brief Construct from buffer and size without copying memory
|
ArrowBuffer(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
_capacity()
\brief Return the buffer's capacity (number of allocated bytes)
|
Status |
Copy(long start,
long nbytes,
ArrowBuffer out)
Copy a section of the buffer using the default memory pool into a new Buffer.
|
Status |
Copy(long start,
long nbytes,
MemoryPool pool,
ArrowBuffer out)
Copy a section of the buffer into a new Buffer.
|
BytePointer |
data()
\brief Return a pointer to the buffer's data
|
boolean |
Equals(ArrowBuffer other)
Return true if both buffers are the same size and contain the same bytes
|
boolean |
Equals(ArrowBuffer other,
long nbytes)
Return true if both buffers are the same size and contain the same bytes
up to the number of compared bytes
|
static ArrowBuffer |
FromString(BytePointer data)
\brief Construct an immutable buffer that takes ownership of the contents
of an std::string
|
static Status |
FromString(BytePointer data,
ArrowBuffer out) |
static Status |
FromString(BytePointer data,
MemoryPool pool,
ArrowBuffer out) |
static ArrowBuffer |
FromString(String data) |
static Status |
FromString(String data,
ArrowBuffer out)
\brief Construct a new buffer that owns its memory from a std::string
using the default memory pool
|
static Status |
FromString(String data,
MemoryPool pool,
ArrowBuffer out)
\brief Construct a new buffer that owns its memory from a std::string
|
byte |
get(long i) |
boolean |
is_mutable() |
BytePointer |
mutable_data()
\brief Return a writable pointer to the buffer's data
The buffer has to be mutable.
|
ArrowBuffer |
parent() |
long |
size()
\brief Return the buffer's size in bytes
|
String |
ToHexString()
\brief Construct a new std::string with a hexadecimal representation of the buffer.
|
String |
ToString()
\brief Copy buffer contents into a new std::string
|
void |
ZeroPadding()
Zero bytes in padding, i.e.
|
address, 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 ArrowBuffer(Pointer p)
Pointer.Pointer(Pointer).public ArrowBuffer(@Cast(value="const uint8_t*") BytePointer data, @Cast(value="int64_t") long size)
data - [in] a memory buffersize - [in] buffer size
\note The passed memory must be kept alive through some other meanspublic ArrowBuffer(@Cast(value="const uint8_t*") ByteBuffer data, @Cast(value="int64_t") long size)
public ArrowBuffer(@Cast(value="const uint8_t*") byte[] data, @Cast(value="int64_t") long size)
public ArrowBuffer(@SharedPtr ArrowBuffer parent, @Cast(value="const int64_t") long offset, @Cast(value="const int64_t") long size)
@Cast(value="uint8_t") @Name(value="operator []") public byte get(@Cast(value="std::size_t") long i)
@StdString public String ToHexString()
@Cast(value="bool") public boolean Equals(@Const @ByRef ArrowBuffer other, @Cast(value="int64_t") long nbytes)
@Cast(value="bool") public boolean Equals(@Const @ByRef ArrowBuffer other)
@ByVal public Status Copy(@Cast(value="const int64_t") long start, @Cast(value="const int64_t") long nbytes, MemoryPool pool, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
@ByVal public Status Copy(@Cast(value="const int64_t") long start, @Cast(value="const int64_t") long nbytes, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
public void ZeroPadding()
@ByVal public static Status FromString(@StdString String data, MemoryPool pool, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
data - [in] a std::string objectpool - [in] a memory poolout - [out] the created buffer@ByVal public static Status FromString(@StdString BytePointer data, MemoryPool pool, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
@ByVal public static Status FromString(@StdString String data, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
@ByVal public static Status FromString(@StdString BytePointer data, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
@SharedPtr @ByVal public static ArrowBuffer FromString(@Cast(value={"","std::string&&"}) @StdString BytePointer data)
data - [in] an rvalue-reference of a string@SharedPtr @ByVal public static ArrowBuffer FromString(@Cast(value={"","std::string&&"}) @StdString String data)
@StdString public String ToString()
@Cast(value="const uint8_t*") public BytePointer data()
@Cast(value="uint8_t*") public BytePointer mutable_data()
@Cast(value="int64_t") @Name(value="capacity") public long _capacity()
@SharedPtr public ArrowBuffer parent()
Copyright © 2020. All rights reserved.