azam_encode_bytes

Function azam_encode_bytes 

Source
pub fn azam_encode_bytes(value: Vec<u8>) -> String
Expand description

Given a source of byte stream, encode to Azam codec and return as string.

§Arguments

  • value - Byte array

§Examples

use azamcodec::encode::azam_encode_bytes;

let mut src = 0xdeadbeefu32.to_be_bytes().to_vec();
let encoded = azam_encode_bytes(src); // "xytxvyyf"