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

Safe HaskellNone
LanguageHaskell2010

Flat.Encoder.Strict

Description

Strict encoder

Synopsis

Documentation

newtype Encoding Source #

Constructors

Encoding 

Fields

Instances
Show Encoding Source # 
Instance details

Defined in Flat.Encoder.Strict

Semigroup Encoding Source # 
Instance details

Defined in Flat.Encoder.Strict

Monoid Encoding Source # 
Instance details

Defined in Flat.Encoder.Strict

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 #