Skip to main content

parse_command_from_signed

Function parse_command_from_signed 

Source
pub fn parse_command_from_signed(payload: &[u8]) -> Option<String>
Expand description

Parse the command string from a signed player command packet.

The command string is the first field, same as unsigned. The remaining fields (timestamp, salt, signatures, last-seen) are ignored.

ยงErrors

Returns None if the data is too short to contain a valid string.