Table of Contents

Class MemoryReadSource

Namespace
Plank.Reading
Assembly
Plank.dll
public sealed class MemoryReadSource : IParquetReadSource, IDisposable
Inheritance
MemoryReadSource
Implements
Inherited Members

Constructors

MemoryReadSource(ReadOnlyMemory<byte>)

public MemoryReadSource(ReadOnlyMemory<byte> bytes)

Parameters

bytes ReadOnlyMemory<byte>

Properties

Length

Gets the source length in bytes.

public ulong Length { get; }

Property Value

ulong

Methods

Dispose()

Does nothing: this source borrows memory and holds no operating-system resource.

public void Dispose()

ReadExactly(ulong, Span<byte>)

Reads bytes from the source at the specified offset until the destination is filled.

public void ReadExactly(ulong offset, Span<byte> destination)

Parameters

offset ulong

The zero-based source offset to read from.

destination Span<byte>

The destination buffer to fill.