@Namespace(value="arrow::io") @NoOffset @Properties(inherit=arrow.class) public class BufferOutputStream extends OutputStream
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
BufferOutputStream(Pointer p)
Pointer cast constructor.
|
BufferOutputStream(ResizableBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
long |
_capacity() |
Status |
Close()
Close the stream, preserving the buffer (retrieve it with Finish()).
|
boolean |
closed()
\brief Return whether the stream is closed
|
static BufferOutputStreamResult |
Create() |
static BufferOutputStreamResult |
Create(long initial_capacity,
MemoryPool pool)
\brief Create in-memory output stream with indicated capacity using a
memory pool
|
BufferResult |
Finish()
\endcond
|
Status |
Reset() |
Status |
Reset(long initial_capacity,
MemoryPool pool)
\brief Initialize state of OutputStream with newly allocated memory and
set position to 0
|
LongResult |
Tell()
\brief Return the position in this stream
|
Status |
Write(Pointer data,
long nbytes) |
asWritable, asWritableAbort, modeaddress, 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 BufferOutputStream(Pointer p)
Pointer(Pointer).public BufferOutputStream(@Const @SharedPtr @ByRef ResizableBuffer buffer)
@ByVal public static BufferOutputStreamResult Create(@Cast(value="int64_t") long initial_capacity, MemoryPool pool)
initial_capacity - [in] the initial allocated internal capacity of
the OutputStreampool - [in,out] a MemoryPool to use for allocations@ByVal public static BufferOutputStreamResult Create()
@ByVal public Status Close()
Close in class FileInterface@Cast(value="bool") public boolean closed()
FileInterfaceclosed in class FileInterface@ByVal public LongResult Tell()
FileInterfaceTell in class FileInterface@ByVal public BufferResult Finish()
Close the stream and return the buffer
@ByVal public Status Reset(@Cast(value="int64_t") long initial_capacity, MemoryPool pool)
initial_capacity - [in] the starting allocated capacitypool - [in,out] the memory pool to use for allocationsCopyright © 2021. All rights reserved.