fn serialize_identifier(binary: &mut BinaryData, string: &str) -> Result<()> {
    let bytes = string.as_bytes();
    serialize_identifier_size(binary, bytes.len())?;
    for byte in bytes {
        binary.push(*byte)?;
    }
    Ok(())
}
/// Serializes a string (identifier or user string).
///
/// A `String` gets serialized as follows:
/// - `String` size as a ULEB128
/// - `String` bytes - *exact format to be defined, Rust utf8 right now*
Serializes a string (identifier or user string).
Serializes a string ( identifier or user string ) .
fn serialize_identifier(binary: &mut BinaryData, string: &str) -> Result<()> {
    let bytes = string.as_bytes();
    serialize_identifier_size(binary, bytes.len())?;
    for byte in bytes {
        binary.push(*byte)?;
    }
    Ok(())
}
fn serialize_identifier ( binary : & mut BinaryData , string : & str ) -> Result < ( ) > { let bytes = string . as_bytes ( ) ; serialize_identifier_size ( binary , bytes . len ( ) ) ? ; for byte in bytes { binary . push ( * byte ) ? ; } Ok ( ( ) ) }
Serializes a string (identifier or user string).
Serializes a string ( identifier or user string ) .
binary
&mut BinaryData
string
&str