Interface IReadingChunkCache
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
chunkIndexulongThe linear chunk index.
chunkReaderFunc<Memory<byte>>The chunk reader is used whenever the chunk is not already cached.