noctarius / borabora

borabora is a CBOR (cbor.io) parser supporting graph queries and lazy decoding of stream elements
Apache License 2.0
13 stars 5 forks source link

Adding binary data type #19

Open noctarius opened 8 years ago

noctarius commented 8 years ago

Adding an additional semantic tag type that defines an upcoming stream of pure binary data. This way byte-streams do not need to be encoded to base64. The definition reuses the idea of a ByteString but does not accept indefinite ByteStrings. Furthermore will the ByteString not be interpreted as a String but as a sequence of unsigned bytes (byte-array).

The semantic tag id has yet to be defined.

As an general abstraction it looks like that:

SemTag(id) UInt(data-length) ByteString(fixed-size only)