pub fn scale_compact_len(buf: &mut Vec<u8>, n: usize) -> Result<(), String>Expand description
SCALE compact encoding for a length prefix.
Returns an error if n is >= 1 GiB, which is beyond the SCALE
single-byte-mode range and not expected in any RPC call this crate makes.