Table of Contents

Class StreamReadSource

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

Constructors

StreamReadSource(Stream)

public StreamReadSource(Stream stream)

Parameters

stream Stream

Properties

Length

Gets the source length in bytes.

public ulong Length { get; }

Property Value

ulong

Methods

Dispose()

Closes the stream this source is currently pointed at.

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.

Reset(Stream)

public void Reset(Stream stream)

Parameters

stream Stream