Expand description
Serialization/Deserialization helpers
Re-exports§
pub use crate::errors::SerializationError;
Traits§
- Packable
- Can be wrapped within a TofPacket. To do, we just have to define a packet type
- Serialization
- Encode/decode structs to
Vec::<u8>
to write to a file or send over the network
Functions§
- get_
json_ from_ file - parse_
bool - parse_
f16 - parse_
f32 - parse_
f64 - parse_
u8 - parse_
u8_ deque - parse_
u16 - Get u32 from a bytestream and move on the position marker
- parse_
u32 - parse_
u64 - parse_
u16_ be - parse_
u16_ deque - parse_
u32_ be - BIG Endian version of parse_u32. NOT for botched event id decoding! Used for network communications
- parse_
u32_ for_ 16bit_ words - Get an u32 from a bytestream
- parse_
u48_ for_ 16bit_ words - Get an 48bit number from a bytestream
- parse_
usize - search_
for_ u16 - Search for a certain number of type
u16
in a bytestream - u8_
to_ u16 - Restore a vector of u16 from a vector of u8
- u8_
to_ u16_ 14bit - Restore a vector of u16 from a vector of u8
- 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 - Convert a vector of u16 into a vector of u8