pub fn encode(input: impl AsRef<[u8]>) -> (Vec<u8>, Hash)
Encode an entire slice into a bytes vector in the default combined mode. This is a convenience wrapper around Encoder::write_all.
Encoder::write_all