From 999b8c49521a0fcb0e841860e1ba7eb2f3fb1186 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 27 Mar 2015 15:52:37 -0300 Subject: [PATCH] Updated binary_Serialization (markdown) --- binary_Serialization.md | 44 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/binary_Serialization.md b/binary_Serialization.md index ac3238d..1d04b5f 100644 --- a/binary_Serialization.md +++ b/binary_Serialization.md @@ -172,6 +172,7 @@ Offset | Len | Type | Description 4|4|Float| Red (0..1) 8|4|Float| Green (0..1) 12|4|Float| Blue (0..1) +16|4|Float| Alpha (0..1) ### 15: image @@ -237,6 +238,8 @@ Offset | Len | Type | Description 4|4|Integer| Array Length (Bytes) 8..8+length|1|Byte| Byte (0..255) +The array data is padded to 4 bytes. + ### 23: int array Offset | Len | Type | Description @@ -245,9 +248,48 @@ Offset | Len | Type | Description 8..8+length*4|4|Integer| 32 Bits Signed Integer ### 24: float array + +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| Array Length (Floats) +8..8+length*4|4|Integer| 32 Bits IEE 754 Float + ### 25: string array + +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| Array Length (Strings) + +For each String: + +X+0|4|Integer| String Length +X+4|X|Bytes| UTF-8 Encoded String + +Every string is is padded to 4 bytes. + ### 26: vector2 array + +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| Array Length +8..8+length*8|4|Float| X Coordinate +8..12+length*8|4|Float| Y Coordinate + ### 27: vector3 array + +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| Array Length +8..8+length*12|4|Float| X Coordinate +8..12+length*12|4|Float| Y Coordinate +8..16+length*12|4|Float| Z Coordinate + ### 28: color array - +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| Array Length +8..8+length*16|4|Float| Red (0..1) +8..12+length*16|4|Float| Green (0..1) +8..16+length*16|4|Float| Blue (0..1) +8..20+length*16|4|Float| Alpha (0..1)