cobs_codec 1.0.0 copy "cobs_codec: ^1.0.0" to clipboard
cobs_codec: ^1.0.0 copied to clipboard

Consistent Overhead Byte Stuffing (COBS) and COBS/R codecs for zero-free, low-overhead framing of serial, UART and packet byte streams.

Changelog #

All notable changes to this package are documented here. This project adheres to Semantic Versioning.

1.0.0 #

Initial release.

Added #

  • Basic COBS encoding and decoding: the cobs codec plus the cobsEncode and cobsDecode functions.
  • COBS/R (Reduced) encoding and decoding: the cobsr codec plus the cobsrEncode and cobsrDecode functions. COBS/R often removes the trailing overhead byte for smaller messages.
  • dart:convert integration: CobsCodec / CobsrCodec extend Codec, and the encoders/decoders extend Converter with chunked-conversion support, so they compose with fuse, Stream.transform, and other codecs.
  • Stream framing for 0x00-delimited links (serial, UART, USB-CDC): cobsFrame, cobsUnframe, and the CobsFrameEncoder / CobsFrameDecoder stream transformers. CobsFrameDecoder reassembles packets across arbitrary chunk boundaries, propagates pause/resume/cancel to the source (even during a delimiter-less run), supports a maxFrameLength bound against unbounded buffering on a noisy or malicious link, and offers configurable handling of empty and malformed frames.
  • Size helpers: encodingOverhead and maxEncodedLength for buffer pre-allocation.
  • Extensive test suite, including the golden vectors from the reference COBS and COBS/R implementations.
1
likes
0
points
186
downloads

Publisher

verified publisherfirechip.dev

Weekly Downloads

Consistent Overhead Byte Stuffing (COBS) and COBS/R codecs for zero-free, low-overhead framing of serial, UART and packet byte streams.

Homepage
Repository (GitHub)
View/report issues

Topics

#cobs #encoding #serialization #framing #serial

License

unknown (license)

More

Packages that depend on cobs_codec