From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:GCZ" |
|---|
| claim | "The 32-byte GCZ header; the u64 block pointer table (top bit = block stored raw) and then the u32 Adler-32 table follow it." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "GCZ as read and written by Dolphin at this commit; little endian (raw host structs)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "CompressedBlobHeader" |
|---|
| size | "0x20" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "magic_cookie" |
|---|
| notes | "0xB10BC001" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "sub_type" |
|---|
| notes | "comment: GC image, whatever; passed by the caller of the writer" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "compressed_data_size" |
|---|
| notes | "bytes of the data area after the tables" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "disc_size" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "block_size" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "num_blocks" |
|---|
| notes | "ceil(disc_size / block_size); must not be 0" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct CompressedBlobHeader, commented 32 bytes; no padding since all members are at their natural alignment" |
|---|
| repo | "https://github.com/dolphin-emu/dolphin" |
|---|
| commit | "41460454e9600f909950fddf0abd13a138430162" |
|---|
| path | "Source/Core/DiscIO/CompressedBlob.h" |
|---|
| lines | "33-41" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CompressedBlobHeader" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T11:40:56.348Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:57:43.743Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read CompressedBlob.h (struct u32,u32,u64,u64,u32,u32 = 32; GCZ_MAGIC 0xB10BC001, the struct comment 0xB10BB10B is stale) and CompressedBlob.cpp (header_size = sizeof header + num_blocks*8 + num_blocks*4; header_size + compressed_data_size must fit the file; num_blocks==0 rejected; writer sets num_blocks = ceil(disc_size/block_size); uncompressed_flag = 1<<63 in block pointers) at the cited commit." |
|---|
|
|
|---|