Changes

918 bytes added ,  21:00, 24 September 2020
Created page with "This page documents the format of PSLB. == Overview == PSLB are data-interchange files like JSON or XML. == Header == {| class="wikitable" border="1" ! Offset !! Size !! Ty..."
This page documents the format of PSLB.

== Overview ==
PSLB are data-interchange files like JSON or XML.

== Header ==
{| class="wikitable" border="1"
! Offset !! Size !! Type !! Description
|-
| 0x000 || 4 || char[4] || Magic Number 'PSLB'
|-
| 0x004 || 4 || uint32 || Unkown
|-
| 0x008 || 4 || uint32 || Unkown
|-
| 0x00C || 4 || uint32 || Unkown
|}

== Data ==
The data is constructed of 1 byte that represents what type of data follows
{| class="wikitable" border="1"
! Value !! Type
|-
| 1 || String
|-
| 2 || int32
|-
| 3 || float (4 byte)
|-
| 4 || Byte
|-
| 5 || Map
|-
| 6 || List
|}

The string type is a combination of an uint32 for the length of the string followed by the characters of the string.

For the Map and List after the type a uint32 follows that represents the number of entries in the Map/List.

The keys of the Map are always strings but the values can have any type of the table
77

edits