@Namespace(value="arrow::ipc") @NoOffset @Properties(inherit=arrow.class) public class MessageDecoder extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageDecoder.State
\brief State for reading a message
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
MessageDecoder(MessageDecoderListener listener) |
MessageDecoder(MessageDecoderListener listener,
int initial_state,
long initial_next_required_size) |
MessageDecoder(MessageDecoderListener listener,
int initial_state,
long initial_next_required_size,
MemoryPool pool) |
MessageDecoder(MessageDecoderListener listener,
MemoryPool pool)
\brief Construct a message decoder.
|
MessageDecoder(MessageDecoderListener listener,
MessageDecoder.State initial_state,
long initial_next_required_size) |
MessageDecoder(MessageDecoderListener listener,
MessageDecoder.State initial_state,
long initial_next_required_size,
MemoryPool pool)
\brief Construct a message decoder with the specified state.
|
MessageDecoder(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Consume(ArrowBuffer buffer)
\brief Feed data to the decoder as a Buffer.
|
Status |
Consume(byte[] data,
long size) |
Status |
Consume(ByteBuffer data,
long size) |
Status |
Consume(BytePointer data,
long size)
\brief Feed data to the decoder as a raw data.
|
long |
next_required_size()
\brief Return the number of bytes needed to advance the state of
the decoder.
|
MessageDecoder.State |
state()
\brief Return the current state of the decoder.
|
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 MessageDecoder(Pointer p)
Pointer(Pointer).public MessageDecoder(@SharedPtr MessageDecoderListener listener, MemoryPool pool)
listener - [in] a MessageDecoderListener that responds events from
the decoderpool - [in] an optional MemoryPool to copy metadata on the
CPU, if requiredpublic MessageDecoder(@SharedPtr MessageDecoderListener listener)
public MessageDecoder(@SharedPtr MessageDecoderListener listener, MessageDecoder.State initial_state, @Cast(value="int64_t") long initial_next_required_size, MemoryPool pool)
listener - [in] a MessageDecoderListener that responds events from
the decoderinitial_state - [in] an initial state of the decodeinitial_next_required_size - [in] the number of bytes needed
to run the next actionpool - [in] an optional MemoryPool to copy metadata on the
CPU, if requiredpublic MessageDecoder(@SharedPtr MessageDecoderListener listener, MessageDecoder.State initial_state, @Cast(value="int64_t") long initial_next_required_size)
public MessageDecoder(@SharedPtr MessageDecoderListener listener, @Cast(value="arrow::ipc::MessageDecoder::State") int initial_state, @Cast(value="int64_t") long initial_next_required_size, MemoryPool pool)
public MessageDecoder(@SharedPtr MessageDecoderListener listener, @Cast(value="arrow::ipc::MessageDecoder::State") int initial_state, @Cast(value="int64_t") long initial_next_required_size)
@ByVal public Status Consume(@Cast(value="const uint8_t*") BytePointer data, @Cast(value="int64_t") long size)
data - [in] a raw data to be processed. This data isn't
copied. The passed memory must be kept alive through message
processing.size - [in] raw data size.@ByVal public Status Consume(@Cast(value="const uint8_t*") ByteBuffer data, @Cast(value="int64_t") long size)
@ByVal public Status Consume(@Cast(value="const uint8_t*") byte[] data, @Cast(value="int64_t") long size)
@ByVal public Status Consume(@SharedPtr ArrowBuffer buffer)
buffer - [in] a Buffer to be processed.@Cast(value="int64_t") public long next_required_size()
public MessageDecoder.State state()
Copyright © 2021. All rights reserved.