From 1c246046cb948a55089ca31a38a76b6ab70c3dd1 Mon Sep 17 00:00:00 2001 From: akwizgran <akwizgran@users.sourceforge.net> Date: Wed, 31 Aug 2016 21:15:57 +0100 Subject: [PATCH] Minor tweaks to BDF spec. --- BDF.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BDF.md b/BDF.md index c8f9222..547c0e3 100644 --- a/BDF.md +++ b/BDF.md @@ -1,8 +1,8 @@ # Binary Data Format, version 1 -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. -- GitLab