hinterface-0.1.0.0: Initial project template from stack

Safe HaskellSafe
LanguageHaskell2010

Util.Binary

Synopsis

Documentation

runGetA :: Monad m => (Int -> m ByteString) -> (ByteString -> m ()) -> Get a -> m (Either String a) Source #

runPutA :: (ByteString -> m ()) -> Put -> m () Source #

putFloatbe :: Float -> Put Source #

Write a Float in big endian IEEE-754 format.

putFloatle :: Float -> Put Source #

Write a Float in little endian IEEE-754 format.

putFloathost :: Float -> Put Source #

Write a Float in native in IEEE-754 format and host endian.

putDoublebe :: Double -> Put Source #

Write a Double in big endian IEEE-754 format.

putDoublele :: Double -> Put Source #

Write a Double in little endian IEEE-754 format.

putDoublehost :: Double -> Put Source #

Write a Double in native in IEEE-754 format and host endian.

getFloatbe :: Get Float Source #

Read a Float in big endian IEEE-754 format.

getFloatle :: Get Float Source #

Read a Float in little endian IEEE-754 format.

getFloathost :: Get Float Source #

Read a Float in IEEE-754 format and host endian.

getDoublebe :: Get Double Source #

Read a Double in big endian IEEE-754 format.

getDoublele :: Get Double Source #

Read a Double in little endian IEEE-754 format.

getDoublehost :: Get Double Source #

Read a Double in IEEE-754 format and host endian.