Skip to main content

Module codec

Module codec 

Source
Expand description

Sparkplug B protobuf (proto2) codec — hand-written and protoc-free (ADR-1).

The codec is pure: it has no notion of seq/bdSeq/STATE/transport (those live in higher layers). Encoding is total; decoding never panics on hostile input.

Structs§

EncodeOptions
Options controlling how a payload is encoded.

Functions§

decode
Decode Sparkplug B protobuf bytes into a Payload.
encode
Encode a Payload to Sparkplug B protobuf bytes.