Read the raw, still-serialized bytes of a block (or a sub-range) from disk.
Declared in <node/blockstorage.h>
ReadRawBlockResult
ReadRawBlock(
FlatFilePos const& pos,
std::optional<std::pair<size_t, size_t>> block_part = std::nullopt) const;
The requested bytes on success, or a ReadRawError on failure.
| Name | Description |
|---|---|
| pos | Position of the serialized block on disk. |
| block_part | Optional (offset, length) sub-range of the block to read. |