Expand description
This file contains generic parsers to read data from a stream of bytes and interpret them as various types.
Functionsยง
- parse_
bool - Get a u8 from a vector of bytes and advance a position marker by 1
- parse_
f16 - Get a f16 from a vector of bytes and advance a position marker by 2
- parse_
f32 - Get a f32 from a vector of bytes and advance a position marker by 4
- parse_
f64 - Get a f64 from a vector of bytes and advance a position marker by 8
- parse_
string - Get a string from a bytestream and advance a position marker
- parse_
u8 - Get a u8 from a vector of bytes and advance a position marker by 1
- parse_
u16 - Get a u16 from a vector of bytes and advance a position marker by 2
- parse_
u32 - Get a u32 from a vector of bytes and advance a position marker by 4
- parse_
u64 - Get a u64 from a vector of bytes and advance a position marker by 8
- parse_
u16_ be - Get a u16 from a vector of bytes in big-endian and advance a position marker by 2
- parse_
u32_ be - Get a u32 from a vector of bytes in big-endian and advance a position marker by 4
- parse_
u32_ for_ 16bit_ words - Get a u32 from a vector of bytes and advance a position marker by 4 for a non-standard representation of u32 (neither le or be, but shuffled)
- parse_
u48_ for_ 16bit_ words - Get a 48bit number from a vector of bytes
- parse_
u64_ old_ for_ test - Get a u64 from a vector of bytes and advance a position marker by 8
- parse_
usize Deprecated - u8_
to_ u16 - Restore a vector of u16 from a vector of u8
- u8_
to_ u16_ 14bit - This interpretes two following u8 as an u16 Useful for deserialization of waveforms. Additionally it masks the first 2 bits binary adding 0x3ff to each u16.
- u8_
to_ u16_ err_ check - Restore a vector of u16 from a vector of u8, using the first 2 bits of each u16 to get channel/cell error bit information
- u16_
to_ u8 - The resulting vector has twice the number of entries of the original vector. This is useful, when serializing data represented as u16, e.g. the waveforms.