Expand description
Serialization/Deserialization helpers
Re-exports§
pub use crate::errors::SerializationError;
Traits§
- Can be wrapped within a TofPacket. To do, we just have to define a packet type
- Encode/decode structs to
Vec::<u8>
to write to a file or send over the network
Functions§
- Get u32 from a bytestream and move on the position marker
- BIG Endian version of parse_u32. NOT for botched event id decoding! Used for network communications
- Get an u32 from a bytestream
- Get an 48bit number from a bytestream
- Search for a certain number of type
u16
in a bytestream - Restore a vector of u16 from a vector of u8
- Restore a vector of u16 from a vector of u8
- 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
- Convert a vector of u16 into a vector of u8