From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:RFF (Blood resource file)" |
|---|
| claim | "The RFF header is a packed struct of signature[4], int16 version, int16 pad1, uint32 offset (directory), uint32 filenum (entry count) and int32 pad2[4], read with sizeof(RFFHeader)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Blood RFF as read by NBlood" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "RFFHeader" |
|---|
| size | 32 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "char[4]" |
|---|
| name | "sign" |
|---|
| notes | "must equal 'RFF' 0x1A or 'RFF header corrupted'" |
|---|
|
| offset | 4 |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "version" |
|---|
| notes | "version & 0xff00: 0x200 plain directory, 0x300 encrypted directory, else 'Unknown RFF version'" |
|---|
|
| offset | 6 |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "pad1" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "offset" |
|---|
| notes | "file offset of the directory" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "filenum" |
|---|
| notes | "number of directory entries" |
|---|
|
| offset | 16 |
|---|
| size | 16 |
|---|
| type | "int32_t[4]" |
|---|
| name | "pad2" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct inside #pragma pack(push,1); size is the sum of the fields (the reader passes sizeof(RFFHeader)); Init checks memcmp(sign, "RFF\x1a", 4) and switches on version & 0xff00" |
|---|
| repo | "https://github.com/NBlood/NBlood" |
|---|
| commit | "497385d64b97f4fd13b6efb3929df0f2ab3adc87" |
|---|
| path | "source/blood/src/resource.h" |
|---|
| lines | "28-61" |
|---|
|
| type | "source" |
|---|
| detail | "Resource::Init header read and version switch" |
|---|
| repo | "https://github.com/NBlood/NBlood" |
|---|
| commit | "497385d64b97f4fd13b6efb3929df0f2ab3adc87" |
|---|
| path | "source/blood/src/resource.cpp" |
|---|
| lines | "87-127" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RFFHeader" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:33:51.026Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:55:51.744Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read resource.h RFFHeader (pack 1): 4+2+2+4+4+16 = 32; resource.cpp Init checks memcmp(sign,'RFF\x1a',4) else 'RFF header corrupted', version&0xff00 0x200 plain / 0x300 crypt else 'Unknown RFF version'." |
|---|
|
|
|---|