From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:Liblz4" |
|---|
| claim | "LZ4F_frameInfo_t (32 bytes on Win64, LP64 and ILP32): blockSizeID, blockMode, contentChecksumFlag, frameType (4-byte enums at 0, 4, 8, 12), contentSize (uint64 at 16, 0 = unknown), dictID (uint32 at 24), blockChecksumFlag (enum at 28)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Liblz4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "LZ4F_frameInfo_t" |
|---|
| size | 32 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "LZ4F_blockSizeID_t" |
|---|
| name | "blockSizeID" |
|---|
| notes | "0 = default (64 KiB)" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "LZ4F_blockMode_t" |
|---|
| name | "blockMode" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "LZ4F_contentChecksum_t" |
|---|
| name | "contentChecksumFlag" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "LZ4F_frameType_t" |
|---|
| name | "frameType" |
|---|
| notes | "read-only" |
|---|
|
| offset | 16 |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "contentSize" |
|---|
| notes | "declared unsigned long long; 0 = unknown; only written to the frame when nonzero" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "unsigned int" |
|---|
| name | "dictID" |
|---|
| notes | "0 = none" |
|---|
|
| offset | 28 |
|---|
| size | 4 |
|---|
| type | "LZ4F_blockChecksum_t" |
|---|
| name | "blockChecksumFlag" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "typedef struct { LZ4F_blockSizeID_t blockSizeID; LZ4F_blockMode_t blockMode; LZ4F_contentChecksum_t contentChecksumFlag; LZ4F_frameType_t frameType; unsigned long long contentSize; unsigned dictID; LZ4F_blockChecksum_t blockChecksumFlag; } LZ4F_frameInfo_t;" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4frame.h" |
|---|
| lines | "170-184" |
|---|
|
| type | "other" |
|---|
| detail | "Offsets derived from C layout rules (4-byte enums, 8-byte aligned uint64 at offset 16 on every ABI because 16 is a multiple of 8); not checked against a compiler's sizeof." |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "LZ4F frameInfo t" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:56:07.109Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T20:33:21.219Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lz4 lib/lz4frame.h lines 170-184 at aa787570: members blockSizeID, blockMode, contentChecksumFlag, frameType (enums), unsigned long long contentSize, unsigned dictID, LZ4F_blockChecksum_t blockChecksumFlag, same order as the wiki. With 4-byte enums the offsets are 0/4/8/12/16/24/28 and size 32 (uint64 at 16 is 8-aligned on every ABI)." |
|---|
| notes | "Layout derived by hand, not compiled; enum width assumed to be 4 bytes (default for GCC, Clang, MSVC)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T17:59:17.998Z" |
|---|
| summary | "contentSize as uint64_t: export_header rendered 'unsigned long long' as uint8_t[8]" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:40:32.006Z" |
|---|
| summary | "Set byte order native: lz4frame.h API struct in process memory." |
|---|
| changed | |
|---|
|
|
|---|