Module postcard::ser_flavors::crc
source · Available on crate feature
use-crc
only.Expand description
This Cyclic Redundancy Check flavor applies the CRC crate’s Algorithm
struct on
the serialized data. The output of this flavor receives the CRC appended to the bytes.
CRCs are used for error detection when reading data back.
The crc
feature requires enabling to use this module.
More on CRCs: https://en.wikipedia.org/wiki/Cyclic_redundancy_check.
Structs
- Manages CRC modifications as a flavor.
Functions
- to_allocvec_u8
alloc
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_allocvec_u16
alloc
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_allocvec_u32
alloc
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_allocvec_u64
alloc
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_allocvec_u128
alloc
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - 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. - 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. - 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. - 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. - 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. - to_vec_u8
heapless
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_vec_u16
heapless
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_vec_u32
heapless
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_vec_u64
heapless
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
. - to_vec_u128
heapless
Serialize aT
to aheapless::Vec<u8>
, with theVec
containing data followed by a CRC. The CRC bytes are included in the outputVec
.