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 incrementalCobsStreamDecoderwith amaxFrameLengthguard. - Size helpers
maxEncodedLength/encodingOverhead, and typedCobsDecodeError/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.