Rahlys Test Archive

From XentaxWiki
Jump to navigation Jump to search

Format for testing with the plugin managee with a fairly simple format.

Header


Signature  - 4 Bytes 'R' 'T' 'A' #0
File Count - Unsigned 32 bit Little Endian Integer

File Records


All file records are at the end, to know where it starts, take the number of files and multiply it by the size of a single file record, then subtract from the file size

Filename Position - Unsigned 64 bit Little Endian Integer
File Position     - Unsigned 64 bit Little Endian Integer
File Size         - Unsigned 64 bit Little Endian Integer
File Date         - Double sized float in Little Endian format
Archived Date     - Double sized float in Little Endian format


Filename are stored as first a single Unsigned 32 bit Little Endian Integer that represents the size, followed by the actual string data.

All positioning is represented as absolute from the beginning of the file. 64bit integers were used to support archive and file sizes over 4 gigs. This is still dependant of the underlying filesystem as well. if the file system doesn't support files this big, neither will this.