mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-03-04 12:38:18 +01:00
akwizgran created page: BDF
@@ -1,6 +1,6 @@
|
|||||||
BDF is a data format designed for simplicity and compactness. It is a schema-less format with six primitive types (null, boolean, integer, floating point, string, raw) and two container types (list, dictionary).
|
BDF is a data format designed for simplicity and compactness. It is a schema-less format with six primitive types (null, boolean, integer, floating point, string, raw) and two container types (list, dictionary).
|
||||||
|
|
||||||
Each object consists of a type, length and value. The value may be empty. The first four bits of the object give its type. Depending on the type, the next four bits either give the length of the value, or the number of subsequent bytes that contain the length of the value.
|
Each object consists of a type, length and value. The first four bits of the object give its type. Depending on the type, the next four bits either give the length of the value, or the number of subsequent bytes that contain the length of the value.
|
||||||
|
|
||||||
* **0: Null** - Length is 0, value is empty.
|
* **0: Null** - Length is 0, value is empty.
|
||||||
* **1: Boolean** - Length is 1, value is 0 or 1.
|
* **1: Boolean** - Length is 1, value is 0 or 1.
|
||||||
|
|||||||
Reference in New Issue
Block a user