Skip to main content

encode_command

Function encode_command 

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

Encode a command as an array of bulk strings.

Every argument is length-prefixed, so no argument can ever be mistaken for another one however strange its bytes are.