flat-0.3.4: Principled and efficient bit-oriented binary serialization.

Safe HaskellNone
LanguageHaskell2010

Data.Flat.Encoder.Strict

Description

Strict encoder

Synopsis

Documentation

newtype Encoding Source #

Constructors

Encoding 

Fields

encodeListWith :: (t -> Encoding) -> [t] -> Encoding Source #

Encode as a List

encodeArrayWith :: (t -> Encoding) -> [t] -> Encoding Source #

Encode as Array

vsize :: (t -> NumBits) -> t -> NumBits -> NumBits Source #