Expand description
Checksum-trailer framing.
Checksummed wraps any Framer and appends a fixed-size checksum
after each inner frame:
+----------------------------+----------------+
| inner frame (header, | checksum |
| payload, delimiter, ...) | (C::LEN bytes) |
+----------------------------+----------------+The trailer sits outside the inner frame, so the inner framer is used unchanged and nothing has to be copied or buffered on either path. For a length-prefixed inner framer the prefix counts the payload only, which is the layout of many serial and embedded protocols.
Structs§
- Checksummed
- A framer decorator that appends and verifies a checksum trailer.
Enums§
- Checksum
Scope - Which bytes the checksum covers.