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

Functions

  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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_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.