marihachi / PathResolvableArchive

A parser and serializer for PathResolvableArchive(PRA) format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PathResolvableArchive

A parser and serializer for PathResolvableArchive(PRA) format

Specification

The format of PRA file is described in Table 1

Offset Size Name Description
0 3 MagicNumber Identifier of file format
3 4 MetaDataLength(MDL) Length of the MetaData.
32bit unsigned integer, little-endian.
7 MDL MetaData The MetaData is JSON format string.
The MetaData have file infos that includes filepath info etc. .
7+MDL until EOF FileDataBlocks Buffer of the FileData arranged continuously.

Table 1 Structure of PRA file

The format of the MetaData as follows:

{
	"version": 1,
	"files": [
		{ "path": "maps/map1.json", "offset": "0", "length": "80" },
		{ "path": "chars/char1.png", "offset": "80", "length": "160" },
		{ "path": "chars/char2.png", "offset": "240", "length": "140" }
	]
}

License

MIT

About

A parser and serializer for PathResolvableArchive(PRA) format

License:MIT License


Languages

Language:C# 100.0%