macro_rules! to_encoded_bytes {
($($val:expr),*) => { ... };
}
Expand description
Given a list of CompactEncoding
things, encode the arguments to the buffer.
Note this is macro is useful when your arguments have differing types.
let result = to_encoded_bytes!(42u64, "yo");
assert_eq!(&*result, &[42, 2, 121, 111]);