You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: bind ZSTD_getDictID_fromDict and add ZstdDictionaryId value type (#29)
Adds Zstd.dictId(byte[]) / Zstd.dictId(MemorySegment), the core-libzstd reader
for the dictionary id stamped in raw dictionary bytes — the counterpart to
ZstdFrame.dictId (which reads a frame) and the no-wrapper alternative to
ZstdDictionary.id() (which uses the equivalent ZDICT reader). Binds
ZSTD_getDictID_fromDict.
Introduces ZstdDictionaryId, a record wrapping the 32-bit id with an unsigned
value(), isPresent(), and a NONE sentinel for "no id" (0). Every dictionary-id
accessor now returns it instead of int: ZstdDictionary.id(),
ZstdCompressDict.id(), ZstdDecompressDict.id(), ZstdFrame.dictId(...), and the
ZstdFrameHeader.dictId() component. This makes the unsigned semantics and the
0-means-absent sentinel explicit at every call site.
docs/supported.md: ZSTD_getDictID_fromDict now bound (Dictionary 10 -> 11/23).
CHANGELOG Unreleased updated.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments