Skip to content

CobsCodec 1.0.0

Latest

Choose a tag to compare

@ajsb85 ajsb85 released this 05 Jul 06:01
v1.0.0
5d922a7

CobsCodec 1.0.0 (Swift)

Initial release — a pure-Swift (stdlib-only, no Foundation) COBS / COBS-R codec for macOS, iOS, tvOS, watchOS, Linux, and embedded Swift. Byte-identical to the Rust, Dart, and Kotlin members of the Firechip COBS family.

✨ Added

  • Basic COBS and COBS/R encode/decode with a configurable sentinel: byte (Cobs, Cobsr).
  • In-place decoding (decodeInPlace), stream framing (Framing.frame / unframe), and an incremental CobsStreamDecoder with a maxFrameLength guard.
  • Size helpers maxEncodedLength / encodingOverhead, and typed CobsDecodeError / CobsFramingError.
  • Multiplatform: macOS 13+, iOS 16+, tvOS 16+, watchOS 9+, and Linux.

📦 Install

.package(url: "https://github.com/firechip/cobs_codec_swift.git", from: "1.0.0")

Then add the CobsCodec library to your target. Swift Package Manager resolves it directly from this tag — Swift Package Index: https://swiftpackageindex.com/firechip/cobs_codec_swift

✅ Verified

Byte-identical against firechip/cobs-conformance — basic, COBS/R, sentinel, and decode-error vectors — on Linux (Swift 6.1) and macOS.