Table of Contents

Interface IReadingChunkCache

Namespace
PureHDF.VOL.Native
Assembly
PureHDF.dll

Caches chunks during read operations.

public interface IReadingChunkCache

Methods

GetChunk(ulong, Func<Memory<byte>>)

Tries to get the chunk at the given index.

Memory<byte> GetChunk(ulong chunkIndex, Func<Memory<byte>> chunkReader)

Parameters

chunkIndex ulong

The linear chunk index.

chunkReader Func<Memory<byte>>

The chunk reader is used whenever the chunk is not already cached.

Returns

Memory<byte>