parse_padding

Function parse_padding 

Source
pub fn parse_padding(packet: &[u8]) -> Option<u8>
Expand description

Parses the padding from the provided packet data.

Returns the last byte of the packet if the padding bit is set otherwise returns None.