From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:Libzstd" |
|---|
| claim | "ZSTD_compressionParameters is 7 x 32-bit: windowLog, chainLog, hashLog, searchLog, minMatch, targetLength, strategy (ZSTD_strategy enum, 1-9), 28 bytes; it is the row type of ZSTD_defaultCParameters and is returned by ZSTD_getCParams." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libzstd" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ZSTD_compressionParameters" |
|---|
| size | 28 |
|---|
| alignment | 4 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "windowLog" |
|---|
| notes | "unsigned" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "chainLog" |
|---|
| notes | "unsigned" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "hashLog" |
|---|
| notes | "unsigned" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "searchLog" |
|---|
| notes | "unsigned" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "minMatch" |
|---|
| notes | "unsigned" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "targetLength" |
|---|
| notes | "unsigned" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "ZSTD_strategy" |
|---|
| name | "strategy" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "typedef struct { unsigned windowLog; unsigned chainLog; unsigned hashLog; unsigned searchLog; unsigned minMatch; unsigned targetLength; ZSTD_strategy strategy; } ZSTD_compressionParameters;" |
|---|
| repo | "https://github.com/facebook/zstd" |
|---|
| commit | "49cf51799ea051457f57243527aa2058f999f005" |
|---|
| path | "lib/zstd.h" |
|---|
| lines | "1352-1360" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "ZSTD_defaultCParameters in libzstd.dll 1.5.6 reads back as 92 rows of 28 bytes matching clevels.h." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ZSTD_compressionParameters" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:13:44.647Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:25:55.419Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ZSTD_compressionParameters in lib/zstd.h at the cited commit: six unsigned then ZSTD_strategy (enum with ZSTD_fast=1 .. ZSTD_btultra2=9) = 28 bytes." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T17:16:32.969Z" |
|---|
| summary | "Use uint32_t for the unsigned fields so export_header emits real types" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:49:17.877Z" |
|---|
| summary | "Byte order: in-memory API struct (native)" |
|---|
| changed | |
|---|
|
|
|---|