Skip to main content

decode_issy_short

Function decode_issy_short 

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

Decode a 2-byte (short) ISSY field.

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