From e86019fd41dd0e9c0d6caed7c9dc18f659ed2e46 Mon Sep 17 00:00:00 2001 From: Sgeo Date: Wed, 14 Jun 2017 20:47:11 -0400 Subject: [PATCH] Updated Persister (.world etc.) format (markdown) --- Persister-(.world-etc.)-format.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Persister-(.world-etc.)-format.md b/Persister-(.world-etc.)-format.md index 1ab79e8..497dbaa 100644 --- a/Persister-(.world-etc.)-format.md +++ b/Persister-(.world-etc.)-format.md @@ -10,6 +10,8 @@ Worlds generally uses the format described by [Java's DataInput](https://docs.or * Boolean: 1 byte, 0x00 for false 0x01 for true. * Byte, Double, Long, Int, Float, Short: Self-explanatory * Arrays, vectors, maybenulls: Explained below +* MaybeNull: 1 byte as a null indicator (0x01 for null, 0x00 for non-null), followed by an object (as described below) for non-null +* Array: * "Version for X" (not applicable to Persister version): For the first instance for a given X, this is an integer. Otherwise it is omitted and the prior value assumed. Note that X is usually, but not always, a class. # Header and footer