Binary Data Format (BDF) is a data format designed for simplicity and compactness. It has six primitive types (null, boolean, integer, float, string, raw) and two container types (list, dictionary).
Binary Data Format (BDF) is a structured data format designed for simplicity and compactness. It has six primitive types (null, boolean, integer, float, string, raw) and two container types (list, dictionary).
Data formatted with BDF consists of a series of objects. The first four bits of each object indicate its type. Depending on the type, the next four bits may be unused, or may give the value, the length of the value, or the length of the length of the value. All lengths are measured in bytes.
BDF data consists of a series of objects. The first four bits of each object indicate its type. Depending on the type, the next four bits may be unused, or may give the value, the length of the value, or the length of the length of the value. All lengths are measured in bytes.
**0: Null** - Next four bits are zero.
...
...
@@ -18,7 +18,7 @@ Data formatted with BDF consists of a series of objects. The first four bits of
**6: List** - Next four bits are zero. The list contains zero or more elements followed by an End object. Elements may be of any type except End.
**7: Dictionary** - Next four bits are zero. The dictionary contains zero or more key-value pairs followed by an End object. Keys are strings, values may be of any type except End.
**7: Dictionary** - Next four bits are zero. The dictionary contains zero or more key-value pairs followed by an End object. Keys are String objects, values may be of any type except End.
**8: End** - Next four bits are zero. Marks the end of a list or dictionary.