Function bao::encode::encode_to_vec

source ·
pub fn encode_to_vec(input: &[u8]) -> (Hash, Vec<u8>)
Expand description

A convenience wrapper around encode, which allocates a new Vec to hold the encoding.