fs2.data.cbor.high

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.

Attributes

Members list

Concise view

Type members

Classlikes

sealed trait CborValue

Attributes

Companion:
object
Source:
model.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Array
object False.type
class Float32
class Float64
class Integer
class Map
object Null.type
class Tagged
object True.type
object Undefined.type
object CborValue

Attributes

Companion:
trait
Source:
model.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def parseValues[F[_]](implicit F: RaiseThrowable[F]): (F, CborItem) => CborValue

Parses the stream of low-level items into high level AST.

Parses the stream of low-level items into high level AST.

Attributes

Source:
package.scala
def toBinary[F[_]]: (F, CborValue) => Byte

Transforms a stream of CBOR values into the binary representations.

Transforms a stream of CBOR values into the binary representations.

This encoder, uses some tags defined in Tags to encode some values (e.g. big numbers).

Attributes

Source:
package.scala
def toItems[F[_]]: (F, CborValue) => CborItem

Transforms a stream of CBOR values into a stream of low-level items.

Transforms a stream of CBOR values into a stream of low-level items.

This encoder, uses some tags defined in Tags to encode some values (e.g. big numbers).

Attributes

Source:
package.scala
def values[F[_]](implicit F: RaiseThrowable[F]): (F, Byte) => CborValue

Parses the stream of bytes into high level AST.

Parses the stream of bytes into high level AST.

Attributes

Source:
package.scala