Table of Contents

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

bool

Length

public int Length { get; }

Property Value

int

Span

public Span<byte> Span { get; }

Property Value

Span<byte>

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

allocation nint
allocationByteLength int
payloadOffset int
payloadByteLength int
returnAllocation Action<nint>

Returns

ParquetBuffer

DangerousGetAddress()

public nint DangerousGetAddress()

Returns

nint

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Retain()

Returns

ParquetBuffer

RetainSlice(int, int)

public ParquetBuffer RetainSlice(int offset, int length)

Parameters

offset int
length int

Returns

ParquetBuffer