Function base45::encode_from_buffer

source ·
pub fn encode_from_buffer(input: impl AsRef<[u8]>) -> String
👎Deprecated since 3.1.0: Equivalent to encode. Use encode instead.
Expand description

Encode a buffer to base45

The function takes an arbitrary buffer and encodes it to base45.


As of v3.1.0, this function is exactly eqivalent to encode.

let encoded = base45::encode_from_buffer(vec![72,101,108,108,111,33,33]);
assert_eq!(encoded, "%69 VD92EX0");