ptr-0.15.3: Abstractions for operations on pointers

Safe HaskellNone
LanguageHaskell2010

Ptr.Poking

Synopsis

Documentation

data Poking Source #

Efficiently composable specification of how to populate a pointer.

Constructors

Poking !Int !(Ptr Word8 -> IO ())
  • Amount of bytes the encoded data will occupy.
  • Exception-free action, which populates the pointer to the encoded data.

prependConc :: Poking -> Poking -> Poking Source #

Same as mappend and <>, but performs the serialization concurrently. This comes at the cost of an overhead, so it is only advised to use this function when the merged serializations are heavy.

poke :: Poke input -> input -> Poking Source #

pokeAndPeek :: PokeAndPeek input output -> input -> Poking Source #