pub fn top_encode_number(x: u64, signed: bool, buffer: &mut [u8; 8]) -> &[u8]
Expand description
Encodes number to minimimum number of bytes (top-encoding).
Smaller types need to be converted to u64 before using this function.
No generics here, we avoid monomorphization to make the SC binary as small as possible.