Function postcard::ser_flavors::crc::to_slice_u128
source · pub fn to_slice_u128<'a, 'b, T>(
value: &'b T,
buf: &'a mut [u8],
digest: Digest<'a, u128>
) -> Result<&'a mut [u8]>where
T: Serialize + ?Sized,
Available on crate feature
use-crc
only.Expand description
Serialize a T
to the given slice, with the resulting slice containing
data followed by a CRC. The CRC bytes are included in the output buffer.
When successful, this function returns the slice containing the serialized and encoded message.