cborg-0.2.7.0: Concise Binary Object Representation (CBOR)
Copyright(c) Duncan Coutts 2015-2017
LicenseBSD3-style (see LICENSE.txt)
Maintainerduncan@community.haskell.org
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Codec.CBOR.Write

Description

Functions for writing out CBOR Encoding values in a variety of forms.

Synopsis

Documentation

toBuilder Source #

Arguments

:: Encoding

The Encoding of a CBOR value.

-> Builder

The encoded value as a Builder.

Turn an Encoding into a ByteString Builder in CBOR binary format.

Since: 0.2.0.0

toLazyByteString Source #

Arguments

:: Encoding

The Encoding of a CBOR value.

-> ByteString

The encoded CBOR value.

Turn an Encoding into a lazy ByteString in CBOR binary format.

Since: 0.2.0.0

toStrictByteString Source #

Arguments

:: Encoding

The Encoding of a CBOR value.

-> ByteString

The encoded value.

Turn an Encoding into a strict ByteString in CBOR binary format.

Since: 0.2.0.0