haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Format.Binary.Put

Contents

Description

Put monad

Synopsis

Documentation

type Put = PutM () #

Put merely lifts Builder into a Writer monad, applied to ().

runPut :: Put -> Buffer Source #

Execute Put

Put

putBuffer :: Buffer -> Put Source #

Put a buffer

putByteString :: ByteString -> Put Source #

Put a ByteString

putTextUtf8 :: Text -> Put Source #

Put the given text

putPadding :: Word -> Put Source #

Put null bytes

putPaddingAlign :: Word -> Word -> Put Source #

Put null bytes to align the given value to the second

putWord8 :: Word8 -> Put Source #

Put a Word8

putWord16le :: Word16 -> Put Source #

Put a Word16 little-endian

putWord16be :: Word16 -> Put Source #

Put a Word16 big-endian

putWord32le :: Word32 -> Put Source #

Put a Word32 little-endian

putWord32be :: Word32 -> Put Source #

Put a Word32 big-endian

putWord64le :: Word64 -> Put Source #

Put a Word64 little-endian

putWord64be :: Word64 -> Put Source #

Put a Word64 big-endian