Function bao::encode::encode

source · []
pub fn encode(input: impl AsRef<[u8]>) -> (Vec<u8>, Hash)
Expand description

Encode an entire slice into a bytes vector in the default combined mode. This is a convenience wrapper around Encoder::write_all.