Struct ArrowBuffer
public readonly struct ArrowBuffer : IEquatable<ArrowBuffer>, IDisposable
- Implements
- Inherited Members
Constructors
ArrowBuffer(ReadOnlyMemory<byte>)
public ArrowBuffer(ReadOnlyMemory<byte> data)
Parameters
dataReadOnlyMemory<byte>
Properties
Empty
public static ArrowBuffer Empty { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Length
public int Length { get; }
Property Value
Memory
public ReadOnlyMemory<byte> Memory { get; }
Property Value
Span
Gets a read-only span over the buffer contents.
public ReadOnlySpan<byte> Span { get; }
Property Value
Remarks
CAUTION: The returned ReadOnlySpan points directly to memory managed by this ArrowBuffer. Ensure the ArrowBuffer instance remains rooted and undisposed while using this span to prevent use-after-free.
Methods
Clone(MemoryAllocator)
public ArrowBuffer Clone(MemoryAllocator allocator = null)
Parameters
allocatorMemoryAllocator
Returns
Dispose()
public void Dispose()
Equals(ArrowBuffer)
public bool Equals(ArrowBuffer other)
Parameters
otherArrowBuffer
Returns
Retain()
Adds another reference to the memory used by this buffer. Allows a single buffer to be shared by multiple arrays.
public ArrowBuffer Retain()