akwizgran created page: BDF

akwizgran
2015-04-01 12:23:00 +00:00
parent a69123ebdc
commit 213e71abcf

@@ -6,8 +6,8 @@ Each object consists of a type, length and value. The first four bits give the t
* **1: Boolean** - Length is 1, value is 0 or 1. * **1: Boolean** - Length is 1, value is 0 or 1.
* **2: Integer** - Length is 0, 1, 2, 4 or 8. Value is an integer with the specified length. * **2: Integer** - Length is 0, 1, 2, 4 or 8. Value is an integer with the specified length.
* **3: Float** - Length is 4 or 8. Value is a floating point number with the specified length. * **3: Float** - Length is 4 or 8. Value is a floating point number with the specified length.
* **4: String** - Length is 0, 1, 2 or 4. Value is an integer with the specified length, followed by a string with its length given by the integer. * **4: String** - Length is 0, 1, 2, 4 or 8. Value is an integer with the specified length, followed by a string with its length given by the integer.
* **5: Raw** - Length is 0, 1, 2 or 4. Value is an integer with the specified length, followed by raw binary data with its length given by the integer. * **5: Raw** - Length is 0, 1, 2, 4 or 8. Value is an integer with the specified length, followed by raw binary data with its length given by the integer.
* **6: List** - Length is 0. The value consists of zero or more objects of any type followed by an end marker. * **6: List** - Length is 0. The value consists of zero or more objects of any type followed by an end marker.
* **7: Dictionary** - Length is 0. The value consists of zero or more key-value pairs followed by an end marker. The keys are strings and the values may be of any type. * **7: Dictionary** - Length is 0. The value consists of zero or more key-value pairs followed by an end marker. The keys are strings and the values may be of any type.
* **8: End** - Length is 0, value is empty. Marks the end of a list or dictionary. * **8: End** - Length is 0, value is empty. Marks the end of a list or dictionary.