ptr-poker-0.1: Pointer poking action construction and composition toolkit

Safe HaskellNone
LanguageHaskell2010

PtrPoker.Poke

Contents

Synopsis

Documentation

newtype Poke Source #

Constructors

Poke 

Fields

Instances
IsString Poke Source # 
Instance details

Defined in PtrPoker.Poke

Methods

fromString :: String -> Poke #

Semigroup Poke Source # 
Instance details

Defined in PtrPoker.Poke

Methods

(<>) :: Poke -> Poke -> Poke #

sconcat :: NonEmpty Poke -> Poke #

stimes :: Integral b => b -> Poke -> Poke #

Monoid Poke Source # 
Instance details

Defined in PtrPoker.Poke

Methods

mempty :: Poke #

mappend :: Poke -> Poke -> Poke #

mconcat :: [Poke] -> Poke #

lWord64 :: Word64 -> Poke Source #

Little-endian Word64 poker.

bWord64 :: Word64 -> Poke Source #

Big-endian Word64 poker.

ASCII integers

Low level

sizedReverse :: Int -> (Ptr Word8 -> IO a) -> Poke Source #

Having the amount of bytes to be written precomputed, executes an action, which fills the pointer going downward.