All integers in the file are unsigned little endian, everything is little endian, unless otherwise specified! the packers / unpackers are expected to work across platforms however.
Bytes | Commentary |
---|---|
53 54 50 41 4b 00 |
"STPAK\0" |
XX |
Major version |
XX |
Minor version |
XX |
Patch version |
Followed by
Bytes | Commentary |
---|---|
XX XX XX XX XX XX XX XX |
Pack's bitflags |
Defined as:
1<<0
: Pack/file type1<<1
: Name1<<2
: Data
And then optionally from the following:
Bytes | Commentary |
---|---|
XX XX XX XX |
An int representing pack type |
Defined as:
0xFFFFFFFF
: Index data (WIP)- ...
Bytes | Commentary |
---|---|
XX XX XX XX |
Number of bytes for the name |
XX .. |
The name in either bytes (linux) or UTF8 (stringy-named platforms) |
Bytes | Commentary |
---|---|
XX XX XX XX XX XX XX XX |
Number of bytes for the data |
XX .. |
The data |