fs2-data-cbor

Packages

High-level representation and tools for CBOR data streams.

High-level representation and tools for CBOR data streams.

The high-level representation is less powerful as the low-level one, as it builds structured data. For instance it is not able to represent arrays of strings whose size is bigger than Int.MaxValue.

The reprensentation is intended to be easier to work with if you need more structured data and don't exceed the underlying limits.

Low-level representation and tools for CBOR data streams.

Low-level representation and tools for CBOR data streams.

The low-level representation has two main goals:

  • it is a flat representation of the input stream, which allows for expressing collections that exceed the max size of Int.MaxValue
    • it doesn't interpret numbers, keeping their raw representation in memory.

This representation is useful when dealing with streams that may contain big collections or when it is not necessary to build an AST, as it is more efficient than the high-level one.

The data model follows closely the structure described in the RFC.