Confirmed users
394
edits
Line 6: | Line 6: | ||
The file structure in a nutshell is a header (HEADER), followed by a (SIGNATURES) block, followed by a list of variable length files, and finally ending with an index of the files (INDEX). The index is a list of variable length entries (INDEX_ENTRY). The signatures block is a list of variable length entries (SIGNATURE_ENTRY). | The file structure in a nutshell is a header (HEADER), followed by a (SIGNATURES) block, followed by a list of variable length files, and finally ending with an index of the files (INDEX). The index is a list of variable length entries (INDEX_ENTRY). The signatures block is a list of variable length entries (SIGNATURE_ENTRY). | ||
HEADER | HEADER | ||
4 bytes : MARID - "MAR1" | 4 bytes : MARID - "MAR1" | ||
4 bytes : OffsetToIndex - offset to INDEX in bytes relative to the start of MAR file | 4 bytes : OffsetToIndex - offset to INDEX in bytes relative to the start of MAR file | ||
SIGNATURES | SIGNATURES | ||
8 bytes : FileSize - size in bytes of the entire MAR file | |||
4 bytes : NumSignatures - Number of signatures | 4 bytes : NumSignatures - Number of signatures | ||
''NumSignatures SIGNATURE_ENTRY elements'' | ''NumSignatures SIGNATURE_ENTRY elements'' |