[go: up one dir, main page]

from_bytes_crc32

Function from_bytes_crc32 

Source
pub fn from_bytes_crc32<'a, T>(
    s: &'a [u8],
    digest: Digest<'a, u32>,
) -> Result<T>
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 not returned.

See the de_flavors::crc module for the complete set of functions.