Function bao::decode::decode_to_vec

source ·
pub fn decode_to_vec(encoded: &[u8], hash: &Hash) -> Result<Vec<u8>, Error>
Expand description

A convenience wrapper around decode, which allocates a new Vec to hold the content.