Table of Contents

Class ByteBuffer

Namespace
ParquetSharp
Assembly
ParquetSharp.dll

Pool the ByteArray allocations into few buffers that we can pin, rather than many small byte[].

This allows us to more efficiently pass byte-arrays to Parquet native API without having a pinning handle per byte[] (and indirectly, strings).

public sealed class ByteBuffer : IDisposable
Inheritance
ByteBuffer
Implements
Inherited Members

Constructors

ByteBuffer(int)

public ByteBuffer(int blockSize)

Parameters

blockSize int

Methods

Allocate(int)

public ByteArray Allocate(int length)

Parameters

length int

Returns

ByteArray

Clear()

public void Clear()

Dispose()

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

public void Dispose()

~ByteBuffer()

protected ~ByteBuffer()