Struct ParquetBuffer
- Namespace
- Plank
- Assembly
- Plank.dll
Owns a slice of reference-counted unmanaged storage.
public struct ParquetBuffer : IDisposable
- Implements
- Inherited Members
Remarks
Copying this struct creates an alias. Call Retain() for independent ownership.
Properties
IsEmpty
public bool IsEmpty { get; }
Property Value
Length
public int Length { get; }
Property Value
Span
public Span<byte> Span { get; }
Property Value
Methods
AsSpan<T>()
public Span<T> AsSpan<T>()
Returns
- Span<T>
Type Parameters
T
Create(nint, int, int, int, Action<nint>)
public static ParquetBuffer Create(nint allocation, int allocationByteLength, int payloadOffset, int payloadByteLength, Action<nint> returnAllocation)
Parameters
allocationnintallocationByteLengthintpayloadOffsetintpayloadByteLengthintreturnAllocationAction<nint>
Returns
DangerousGetAddress()
public nint DangerousGetAddress()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Retain()
public ParquetBuffer Retain()
Returns
RetainSlice(int, int)
public ParquetBuffer RetainSlice(int offset, int length)