Common file format types

From Arx Libertatis Wiki
Revision as of 06:13, 11 February 2012 by Ds (talk | contribs) (Created page with "This page describes types common to various Arx Fatalis file formats. == Numbers == All integers are encoded in little-endian byte order. Types are the same as in <code>platfor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page describes types common to various Arx Fatalis file formats.

Numbers

All integers are encoded in little-endian byte order. Types are the same as in platform/Platform.h - s (signed integer) / u (unsigned integer) / f (float), followed by the number of bits.

Example: u32 is an unsigned 32-bit integer.

Arrays

Arrays are denoted by brackets like in c++.

Example: u32[64] is an array of 64 unsigned 32-bit integers.

Example: u8[128] is a fixed length string of (max) 128 bytes.

C Strings

Types described as c string are variably sized strings that are terminated with a null-byte.