From 3805b9e37106537168896eb6e3aafc747d98bbc3 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 27 Mar 2015 09:42:39 -0300 Subject: [PATCH] Updated binary_Serialization (markdown) --- binary_Serialization.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/binary_Serialization.md b/binary_Serialization.md index 233d1ad..b974c38 100644 --- a/binary_Serialization.md +++ b/binary_Serialization.md @@ -45,16 +45,55 @@ Following this is the actual packet contents, which varies for each type of pack ### 0: null ### 1: bool + Offset | Len | Type | Description ---|---|---|--- 4|4|Integer| 0 for False, 1 for True ### 2: integer + +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| Signed, 32-Bit Integer + ### 3: float + +Offset | Len | Type | Description +---|---|---|--- +4|4|Float| IEE 754 32-Bits Float + ### 4: string + +Offset | Len | Type | Description +---|---|---|--- +4|4|Integer| String Length (in Bytes) +8|X|Bytes| UTF-8 Encoded String + ### 5: vector2 + +Offset | Len | Type | Description +---|---|---|--- +4|4|Float| X Coordinate +8|4|Float| Y Coordinate + ### 6: rect2 + +Offset | Len | Type | Description +---|---|---|--- +4|4|Float| X Coordinate +8|4|Float| Y Coordinate +12|4|Float| X Size +16|4|Float| Y Size + + ### 7: vector3 + +Offset | Len | Type | Description +---|---|---|--- +4|4|Float| X Coordinate +8|4|Float| Y Coordinate +12|4|Float| Z Coordinate + ### 8: matrix32 ### 9: plane ### 10: quaternion