Function postcard::ser_flavors::crc::to_allocvec_u16
source · pub fn to_allocvec_u16<'a, T>(
value: &T,
digest: Digest<'a, u16>
) -> Result<Vec<u8>>where
T: Serialize + ?Sized,
Available on crate features
use-crc
and alloc
only.Expand description
Serialize a T
to a heapless::Vec<u8>
, with the Vec
containing
data followed by a CRC. The CRC bytes are included in the output Vec
.