dahdit-0.1.3: Binary parsing and serialization with integrated size
Safe HaskellSafe-Inferred
LanguageHaskell2010

Dahdit.Binary

Documentation

class ByteSized a => Binary a where Source #

Methods

get :: Get a Source #

put :: a -> Put Source #

Instances

Instances details
Binary Int8 Source # 
Instance details

Defined in Dahdit.Binary

Methods

get :: Get Int8 Source #

put :: Int8 -> Put Source #

Binary Word8 Source # 
Instance details

Defined in Dahdit.Binary

Methods

get :: Get Word8 Source #

put :: Word8 -> Put Source #

Binary BoolByte Source # 
Instance details

Defined in Dahdit.Fancy

Binary TermBytes Source # 
Instance details

Defined in Dahdit.Fancy

Binary FloatBE Source # 
Instance details

Defined in Dahdit.Binary

Binary FloatLE Source # 
Instance details

Defined in Dahdit.Binary

Binary Int16BE Source # 
Instance details

Defined in Dahdit.Binary

Binary Int16LE Source # 
Instance details

Defined in Dahdit.Binary

Binary Int24BE Source # 
Instance details

Defined in Dahdit.Binary

Binary Int24LE Source # 
Instance details

Defined in Dahdit.Binary

Binary Int32BE Source # 
Instance details

Defined in Dahdit.Binary

Binary Int32LE Source # 
Instance details

Defined in Dahdit.Binary

Binary Word16BE Source # 
Instance details

Defined in Dahdit.Binary

Binary Word16LE Source # 
Instance details

Defined in Dahdit.Binary

Binary Word24BE Source # 
Instance details

Defined in Dahdit.Binary

Binary Word24LE Source # 
Instance details

Defined in Dahdit.Binary

Binary Word32BE Source # 
Instance details

Defined in Dahdit.Binary

Binary Word32LE Source # 
Instance details

Defined in Dahdit.Binary

Binary () Source # 
Instance details

Defined in Dahdit.Binary

Methods

get :: Get () Source #

put :: () -> Put Source #

BinaryRep x a => Binary (ViaBinaryRep a) Source # 
Instance details

Defined in Dahdit.BinaryRep

(ByteSized a, HasCodec a) => Binary (ViaCodec a) Source # 
Instance details

Defined in Dahdit.Codec

Methods

get :: Get (ViaCodec a) Source #

put :: ViaCodec a -> Put Source #

KnownSymbol s => Binary (ExactBytes s) Source # 
Instance details

Defined in Dahdit.Fancy

KnownNat n => Binary (StaticBytes n) Source # 
Instance details

Defined in Dahdit.Fancy

(Generic t, GBinary (Rep t)) => Binary (ViaGeneric t) Source # 
Instance details

Defined in Dahdit.Generic

(Generic t, GStaticByteSized (Rep t), GBinary (Rep t)) => Binary (ViaStaticGeneric t) Source # 
Instance details

Defined in Dahdit.Generic

(KnownNat n, Prim a, StaticByteSized a, Default a) => Binary (StaticArray n a) Source # 
Instance details

Defined in Dahdit.Fancy

Methods

get :: Get (StaticArray n a) Source #

put :: StaticArray n a -> Put Source #

(KnownNat n, Binary a, StaticByteSized a, Default a) => Binary (StaticSeq n a) Source # 
Instance details

Defined in Dahdit.Fancy

Methods

get :: Get (StaticSeq n a) Source #

put :: StaticSeq n a -> Put Source #