Skip to main content

decode_issy_short

Function decode_issy_short 

Source
pub fn decode_issy_short(bytes: [u8; 2]) -> Option<Issy>
Expand description

Decode a 2-byte (short) ISSY field.

Returns Some(Issy::IscrShort) when the short-form bit (bit 7 of byte 0) is 0; None otherwise (a 1 prefix means a long-form field, which is 3 bytes and must be decoded with decode_issy_long).