tof_dataclasses::serialization

Function u16_to_u8

Source
pub fn u16_to_u8(vec_u16: &[u16]) -> Vec<u8>
Expand description

Convert a vector of u16 into a vector of 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.