pub fn encode_var_bytes(buf: &mut Vec<u8>, data: &[u8])
Dynamic-length bytes: compact length + raw bytes.