Skip to main content

parse_network_index

Function parse_network_index 

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

Parse the index bytes alone (a suffix range, or the shard’s head), CRC-32C verified. Spans are checked against the bytes when chunks are read.