From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Zstandard" |
|---|
| claim | "A formatted Zstandard dictionary is Magic 0xEC30A437 (uint32 LE), Dictionary_ID (uint32 LE, not 0; IDs below 32768 and from 2^31 reserved), then a Huffman tree description for literals, FSE table descriptions for offsets, match lengths and literal lengths (in that order), three uint32 LE repeat offsets (each nonzero and at most the content size), and the remaining bytes as content used as history in front of the frame." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Zstandard" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "zstd_dictionary" |
|---|
| size_min | 8 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Magic_Number" |
|---|
| notes | "0xEC30A437" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "uint32" |
|---|
| name | "Dictionary_ID" |
|---|
|
| offset | 8 |
|---|
| size | 1 |
|---|
| type | "uint8[]" |
|---|
| name | "Entropy_Tables_Repeat_Offsets_Content" |
|---|
| notes | "Huffman tree, OF/ML/LL FSE tables, 3 x uint32 repeat offsets, then content" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "Dictionary Format section" |
|---|
| repo | "https://github.com/facebook/zstd" |
|---|
| commit | "49cf51799ea051457f57243527aa2058f999f005" |
|---|
| path | "doc/zstd_compression_format.md" |
|---|
| lines | "1478-1538" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "FrameState.load_dictionary of Code:Zstandard/Zstandard decoder (Python) parses the four dictionaries of klauspost/compress dict-tests-small.zip this way; their 40 frames decode with matching XXH64 checksums." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Dictionary header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:12:19.647Z" |
|---|
| verifications | |
|---|