Skip to main content

write_string_optional

Function write_string_optional 

Source
pub fn write_string_optional(
    writer: &mut impl Write,
    s: &str,
) -> Result<(), WalletError>
Expand description

Write a string that uses the full varint negative-one sentinel for empty. This matches Go SDK’s WriteOptionalString behavior (empty string -> NegativeOne).