User:Shaneomack91/XRC

{{Userspace draft|source=ArticleWizard|date=February 2011}}

File Layout

The following table describes the overall layout of an XRC resource file:

class="wikitable"
XRC File Header
Attribute Table
Data Section
(Optional) Data Checksum
(Optional) Data Signature

XRC File Header

The following table describes the layout of an XRC file header:

class="wikitable"
Field || Size || Allowed Values || Description
magicNumber0x40x2f435258 ("XRC/")Identifies a valid XRC file.
fileType0x40x3A?????? ("???:")Identifies the application-specific file type.
reserved0x40x00000000Reserved for future expansion, must be 0.
numberOfAttributes0x40x00000000 - 0x00FFFFFFSpecifies the number of entries in the attribute table.
dataOffset0x40x00000000 - 0x7FFFFFFFSpecifies the offset, in bytes, from the beginning of the file to the beginning of the data section.
dataLength0x80x0000000000000000 - 0xFFFFFFFFFFFFFFFFSpecifies the length of the data section.
dataChecksum0x40x00000000 - 0xFFFFFFFFCRC-32 of the data, using polynomial 0xEDB88320