Skip to main content

encode_args

Function encode_args 

Source
pub fn encode_args(args: &[String]) -> Vec<u8> ⓘ
Expand description

Serializes a slice of arguments into length-prefixed binary wire format.

Wire format:

  • 4-byte little-endian u32: argument count N
  • For each argument:
    • 4-byte little-endian u32: byte length L
    • L UTF-8 payload bytes