BiSON uses a bit stream in order to achieve maximum possible compression of the different data types, the format is described below.
Each token
is prepended by a 3 bit
field that determines its type
, there are 7
different types:
-
0
: Either aBoolean
ornull
, a2 bit
field with the following values follows:0
=false