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§
- Chunked
File Reader - Chunks file into several
FileClient
s. - Decoded
File Chunk - Output from decoding a file chunk with
FromReader::from_reader
. - File
Client - Front-end API for fetching chain data from a file.
Enums§
- File
Client Error - 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§
- From
Reader - Constructs a file client from a reader.