pub fn decode_stream_slice(
    tree_bytes: &[u8],
) -> Result<(SubnetId, StreamSlice), DecodeStreamError> {
    let tree = decode_labeled_tree(tree_bytes)?;
    decode_slice_from_tree(&tree)
}
/// Decodes a stream slice and the subnet it came from from a serialized
/// canonical tree.
Decodes a stream slice and the subnet it came from from a serialized
canonical tree.
Decodes a stream slice and the subnet it came from from a serialized canonical tree .
pub fn decode_stream_slice(
    tree_bytes: &[u8],
) -> Result<(SubnetId, StreamSlice), DecodeStreamError> {
    let tree = decode_labeled_tree(tree_bytes)?;
    decode_slice_from_tree(&tree)
}
pub fn decode_stream_slice ( tree_bytes : & [ u8 ] , ) -> Result < ( SubnetId , StreamSlice ) , DecodeStreamError > { let tree = decode_labeled_tree ( tree_bytes ) ? ; decode_slice_from_tree ( & tree ) }
Decodes a stream slice and the subnet it came from from a serialized
canonical tree.
Decodes a stream slice and the subnet it came from from a serialized canonical tree .
tree_bytes
&[u8]
tree_bytes
&[u8]