Skip to main content

Header

Stone archives are encoded with a version agnostic header, ensuring that version-specific fields can be handled separately from version and format detection. This is a 32-byte header at the start of the archive.

Fields

FieldSizeDescription
magic4 bytesAlways 0x006d6f73
data24 bytesVersion specific data
version4 bytesVersion number, i.e. 1

moss identifier

The "magic" is always recorded as NUL M O S, or:

pub const STONE_MAGIC: &[u8; 4] = b"\0mos";