decode_base91_4

Function decode_base91_4 

Source
pub fn decode_base91_4(bytes: &[u8]) -> Result<u32, AprsError>
Expand description

Decode a 4-byte base-91 value.

Each byte is in the ASCII range 33-124. The value is: b[0]*91^3 + b[1]*91^2 + b[2]*91 + b[3]

ยงErrors

Returns AprsError::InvalidCoordinates if bytes is shorter than 4 bytes or any byte is outside the 33..=124 base-91 range.