File Layout

edit

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

XRC File Header
Attribute Table
Data Section
(Optional) Data Checksum
(Optional) Data Signature

XRC File Header

edit

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

Field Size Allowed Values Description
magicNumber 0x4 0x2f435258 ("XRC/") Identifies a valid XRC file.
fileType 0x4 0x3A?????? ("???:") Identifies the application-specific file type.
reserved 0x4 0x00000000 Reserved for future expansion, must be 0.
numberOfAttributes 0x4 0x00000000 - 0x00FFFFFF Specifies the number of entries in the attribute table.
dataOffset 0x4 0x00000000 - 0x7FFFFFFF Specifies the offset, in bytes, from the beginning of the file to the beginning of the data section.
dataLength 0x8 0x0000000000000000 - 0xFFFFFFFFFFFFFFFF Specifies the length of the data section.
dataChecksum 0x4 0x00000000 - 0xFFFFFFFF CRC-32 of the data, using polynomial 0xEDB88320