Skip to main content

read_network_index

Function read_network_index 

Source
pub fn read_network_index(
    layout: &NetworkLayout,
    shard: &[u8],
) -> Result<Vec<Option<ShardIndexEntry>>, DecodeError>
Expand description

Read the shard index out of the whole shard, CRC-32C verified, every written chunk lying inside the shard and outside the index.