pub fn decode_shard_table(
bytes: &[u8],
shard_count: u32,
out: &mut [u16],
) -> Result<()>Expand description
Expands a run length encoded shard table into out.
ยงErrors
Code::Corrupt if the runs do not add up to exactly SLOT_COUNT, if a
run is zero long, or if a shard id is at or above shard_count. All three
are things a flipped bit produces and all three would otherwise route a key
to a shard that does not exist.