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
Adds two frame-inspection readers on ZstdFrame:
- decompressedSize(byte[]/MemorySegment) — exact combined decompressed size of
all concatenated frames, summed from each header (throws if any frame omits
its size). Complements decompressedBound (upper bound). Binds
ZSTD_findDecompressedSize.
- headerSize(byte[]/MemorySegment) — size of a frame header computed from just
its leading bytes (as few as 5), without a full parse. Binds
ZSTD_frameHeaderSize.
Extracts Zstd.requireStoredContentSize(long) for the CONTENTSIZE_UNKNOWN /
CONTENTSIZE_ERROR sentinel handling that was copy-pasted across three call
sites, and unifies the drifted error message ("not valid zstd data" vs "not a
valid zstd frame") to one.
ZSTD_getDecompressedSize intentionally not bound: deprecated, and blends
empty/unknown/error into 0 — the ambiguity ZSTD_getFrameContentSize (already
bound as Zstd.decompressedSize) was added to fix.
docs/supported.md: frame inspection 10 -> 12/13. CHANGELOG updated.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2.~~**Advanced parameters**~~ — done: every `ZSTD_cParameter`/`ZSTD_dParameter` via `ZstdCompressParameter`/`ZstdDecompressParameter` (+ `bounds()`), on both contexts; `pledgedSrcSize`. `nbWorkers` is settable but inert until the native build enables multithreading.
0 commit comments