Module file_client

Source
Expand description

Module managing file-based data retrieval and buffering.

Contains FileClient to read block data from files, efficiently buffering headers and bodies for retrieval.

Structs§

ChunkedFileReader
Chunks file into several FileClients.
DecodedFileChunk
Output from decoding a file chunk with FromReader::from_reader.
FileClient
Front-end API for fetching chain data from a file.

Enums§

FileClientError
An error that can occur when constructing and using a FileClient.

Constants§

DEFAULT_BYTE_LEN_CHUNK_CHAIN_FILE
Default byte length of chunk to read from chain file.

Traits§

FromReader
Constructs a file client from a reader.