https://github.com/marihachi/pathresolvablearchive
A parser and serializer for PathResolvableArchive(PRA) format
https://github.com/marihachi/pathresolvablearchive
archive container dotnet file game json path
Last synced: about 2 months ago
JSON representation
A parser and serializer for PathResolvableArchive(PRA) format
- Host: GitHub
- URL: https://github.com/marihachi/pathresolvablearchive
- Owner: marihachi
- License: mit
- Created: 2019-08-10T15:29:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:16:32.000Z (over 3 years ago)
- Last Synced: 2024-10-05T19:21:34.739Z (over 1 year ago)
- Topics: archive, container, dotnet, file, game, json, path
- Language: C#
- Size: 20.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```json
{
"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