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.
Requires the crc feature.
More on CRCs: https://en.wikipedia.org/wiki/Cyclic_redundancy_check.
Structs§
- CrcModifier
- Manages CRC modifications as a flavor.
Functions§
- to_
allocvec_ u8 alloc - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
allocvec_ u16 alloc - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
allocvec_ u32 alloc - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
allocvec_ u64 alloc - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
allocvec_ u128 alloc - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
slice_ u8 - Serialize a
Tto the given slice, with the resulting slice containing data followed by a CRC. The CRC bytes are included in the output buffer. - to_
slice_ u16 - Serialize a
Tto the given slice, with the resulting slice containing data followed by a CRC. The CRC bytes are included in the output buffer. - to_
slice_ u32 - Serialize a
Tto the given slice, with the resulting slice containing data followed by a CRC. The CRC bytes are included in the output buffer. - to_
slice_ u64 - Serialize a
Tto the given slice, with the resulting slice containing data followed by a CRC. The CRC bytes are included in the output buffer. - to_
slice_ u128 - Serialize a
Tto 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 a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
vec_ u16 heapless - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
vec_ u32 heapless - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
vec_ u64 heapless - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec. - to_
vec_ u128 heapless - Serialize a
Tto aheapless::Vec<u8>, with theVeccontaining data followed by a CRC. The CRC bytes are included in the outputVec.