[go: up one dir, main page]

Module crc

Module 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. 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_u8alloc
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_allocvec_u16alloc
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_allocvec_u32alloc
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_allocvec_u64alloc
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_allocvec_u128alloc
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_slice_u8
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_slice_u16
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_slice_u32
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_slice_u64
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_slice_u128
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_u8heapless
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_vec_u16heapless
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_vec_u32heapless
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_vec_u64heapless
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.
to_vec_u128heapless
Serialize a T to a heapless::Vec<u8>, with the Vec containing data followed by a CRC. The CRC bytes are included in the output Vec.