Function postcard::take_from_bytes_crc32
source · pub fn take_from_bytes_crc32<'a, T>(
s: &'a [u8],
digest: Digest<'a, u32>
) -> Result<(T, &'a [u8])>where
T: Deserialize<'a>,
Available on crate feature
use-crc
only.Expand description
Conveniently deserialize a message of type T
from a byte slice with a Crc. The unused portion (if any)
of the byte slice is returned for further usage
See the de_flavors::crc
module for the complete set of functions.