From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:LZ4" |
|---|
| claim | "Bits 6-4 of the LZ4 frame BD byte give the maximum decoded size of one block: 4 = 64 KiB, 5 = 256 KiB, 6 = 1 MiB, 7 = 4 MiB; 0-3 are invalid. The lz4 CLI defaults to 7, liblz4's LZ4F API to 4 (LZ4F_max64KB; 0 in LZ4F_frameInfo_t means default)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:LZ4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "LZ4_block_max_size_id" |
|---|
| underlying_type | "uint8_t (BD bits 6-4)" |
|---|
| values | | name | "max64KB" |
|---|
| value | 4 |
|---|
| notes | "65536 bytes" |
|---|
|
| name | "max256KB" |
|---|
| value | 5 |
|---|
| notes | "262144 bytes" |
|---|
|
| name | "max1MB" |
|---|
| value | 6 |
|---|
| notes | "1048576 bytes" |
|---|
|
| name | "max4MB" |
|---|
| value | 7 |
|---|
| notes | "4194304 bytes" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "Block Maximum Size table: 0-3 N/A, 4 64 KB, 5 256 KB, 6 1 MB, 7 4 MB" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "doc/lz4_Frame_format.md" |
|---|
| lines | "188-201" |
|---|
|
| type | "source" |
|---|
| detail | "LZ4F_default=0, LZ4F_max64KB=4, LZ4F_max256KB=5, LZ4F_max1MB=6, LZ4F_max4MB=7; CLI: #define LZ4IO_BLOCKSIZEID_DEFAULT 7" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4frame.h" |
|---|
| lines | "124-134" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Block maximum size ID" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:53:41.695Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:51:16.039Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read doc/lz4_Frame_format.md at aa787570 lines 188-201: table 0-3 N/A, 4 = 64 KB, 5 = 256 KB, 6 = 1 MB, 7 = 4 MB. Complete. The LZ4F_blockSizeID_t constants and the CLI default 7 were not re-read in this check." |
|---|
|
|
|---|