File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ Built `.dylib/.so/.dll` are git-ignored; they are regenerated from the submodule
4040- Native pointers wrap in ` NativeObject ` (` AutoCloseable ` , idempotent close).
4141- All native handles live in ` Bindings ` ; ` size_t ` /` unsigned long long ` map to
4242 ` JAVA_LONG ` . Public methods guard zstd's negative sentinels.
43+ - Native structs: model the layout as a named ` StructLayout ` and access fields
44+ through ` static final VarHandle ` s from it (` LAYOUT.varHandle(groupElement("…")) ` ),
45+ deriving size from ` LAYOUT.byteSize() ` . No hardcoded offsets/sizes — see
46+ ` ZstdStreamBuffer ` .
4347- API is ** segment-first for the zero-copy fast path, with thin ` byte[] `
4448 overloads** for heap callers. Never allocate a ` byte[] ` for decode output on a
4549 hot path — see [ docs/zero-copy.md] ( docs/zero-copy.md ) .
You can’t perform that action at this time.
0 commit comments