Releases: mas-bandwidth/serialize.dart
Release list
serialize.dart 1.1.0: format version 1.1
This release brings the Dart runtime to format version 1.1 of the wire standard. int_relative reconstructs every tier in a width that cannot wrap and refuses a result outside 0 to 2^31 - 1 or not strictly above previous; the absolute tier reads its 32 raw bits unsigned and refuses a set top bit; a refused read writes nothing to a scalar destination and is terminal until the stream is re-initialized; a ranged int128 with min equal to max is legal and costs zero bits. The standard's conformance corpus is vendored and every vector runs in the test suite, so this runtime's verdict on hostile bytes is now the same as every other runtime's, and the vendored STANDARD.md and corpus are checked against upstream in CI. The wire is unchanged: every packet a previous release wrote reads the same, and every accepted vector round-trips byte for byte. The read stream now latches failure by poisoning its position, and the vendored standard and corpus are new to this repository.
serialize.dart 1.0.0 — the serialize wire, native on Dart
The serialize wire, native on Dart. This is the first release of serialize.dart: the family's bitpacking serializer for Dart VM and AOT, wire compatible with the C++ serialize library — the same bytes, bit for bit, on every platform.
What you get:
- The full primitive surface: raw bits, ranged integers through 128 bits, bool, bit-transparent float and double, the compressed float, relative integers, alignment, byte blocks, UTF-8 and wide strings, and fixed point across all storage widths — through write, read, and measure streams.
- Byte-identical wire, proven: the port reproduces the reference's golden wire vectors exactly and passes the full sabotage sweep — every one of the 891 consumed bits in the conformance stream is load-bearing, and hostile bytes never throw.
- Reads validate everything; writes trust the caller, with contract asserts in debug mode that compile out in release.
- Zero dependencies. The test harness is part of the repo; nothing is fetched to build or test.
- Benchmarked under AOT — the mode Flutter release builds ship — with the family benchmark in-repo, golden gated so it reports nothing on a bad wire.
USAGE.md teaches every operation with an example that runs; the wire format itself is specified in the C++ repository's STANDARD.md.