Skip to main content
Version: v0.0.6

Interface: FrameChecksum

A frame's checksum verdict: the modulo-256 value recomputed from the frame's bytes, the value declared on the wire (or undefined when it was unreadable), and whether they matched.

Properties

computed

readonly computed: number

The modulo-256 checksum recomputed over the frame (frame number through terminator).


declared?

readonly optional declared?: number

The checksum declared on the wire (the two hex chars after the terminator), read case-insensitively; undefined when those bytes were missing or not hex.


valid

readonly valid: boolean

true only when a declared checksum was present and equal to computed.