Skip to main content

parse_inventory

Function parse_inventory 

Source
pub fn parse_inventory(hex: &str) -> Result<Vec<u8>, HandlerError>
Expand description

Parse a hex-encoded inventory string into bytes.

Returns an error if the hex string has odd length or contains non-hex characters.