MaybeNullVector

Sgeo 2017-06-15 18:40:23 -04:00
parent 8c3f732a43
commit 91cec9a22b

@ -12,6 +12,7 @@ Worlds generally uses the format described by [Java's DataInput](https://docs.or
* MaybeNull: 1 byte as a null indicator (0x01 for null, 0x00 for non-null), followed by an object (as described below) for non-null
* Class: A Class ID, then if the Class ID has not been encountered before in this file, a String for the class name. If the Class ID has been encountered before, the class name is omitted and the prior name assumed.
* Vector: Integer representing number of objects, followed by that number of objects.
* MaybeNullVector: 1 byte as a null indicator (0x00 for null, 0x01 for non-null, opposite of MaybeNull), followed by a Vector for not-null
* Array: If Persister version >= 5, starts with a class (as described above) with a name beginning with "[L" and ending with ";". Between these are the name of another class. Following that, in all Persister versions, is an integer for number of items, followed by that many MaybeNulls.
* "Version for X" (not applicable to Persister version): For the first instance for a given X within this file, this is an integer. Otherwise it is omitted and the prior value assumed. Note that X is usually, but not always, a class. Note that for Persister version 1, "versions" are always 0 and never read from the file.