Skip to main content

parse_shard_index

Function parse_shard_index 

Source
pub fn parse_shard_index(
    bytes: &[u8],
    chunk_count: usize,
) -> Result<Vec<Option<ShardIndexEntry>>, DecodeError>
Expand description

The (offset, nbytes) pairs of one shard, CRC-32C verified. None marks an inner chunk the shard never held — the all-ones sentinel — which reads as the fill value. bytes is exactly the index.