XZP File Format

From Ch2r

(Redirected from .xzp)
Jump to: navigation, search

This is a simple unsigned file container format. It consists of a header, followed by one or more directory entries, then the data for the files.

XZP Header

Total length: 22 bytes. Byte ordering is Big-Endian.

Address Length (bytes) Contains Description
0x0000 4 { 'X', 'U', 'I', 'Z' } Signature, unknown abbreviation
0x0004 4 0x00000001 Flags ?
0x0008 4 varies Total length of file
0x000C 4 0x00000000 Unknown. Reserved ?
0x0010 4 varies Pointer to start of data section, measured from end of header
0x0014 2 varies Number of directory entries

Directory entry

Byte ordering is Big-Endian.

Address Length (bytes) Description
0x0000 4 Length of file
0x0004 4 Pointer to start of file, measured from start of data section
0x0008 1 Number of characters in filename
0x0009 varies Filename, encoded in UTF-16

Other info

You get the start offset of a file through this formula:

header size (22) + Pointer to start of data + Pointer to start of file

Personal tools

SourceForge.net Logo