Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Poking = Poking !Int !(Ptr Word8 -> IO ())
- null :: Poking -> Bool
- length :: Poking -> Int
- word8 :: Word8 -> Poking
- beWord32 :: Word32 -> Poking
- beWord64 :: Word64 -> Poking
- bytes :: ByteString -> Poking
- poke :: Poke input -> input -> Poking
- pokeAndPeek :: PokeAndPeek input output -> input -> Poking
- asciiIntegral :: Integral a => a -> Poking
- asciiChar :: Char -> Poking
- asciiPaddedAndTrimmedIntegral :: Integral a => Int -> a -> Poking
- asciiUtcTimeInIso8601 :: UTCTime -> Poking
- list :: (element -> Poking) -> [element] -> Poking
Documentation
An efficiently composable unmaterialised specification of how to populate a pointer.
Once composed it can be materialized into a specific data-structure like ByteString or to directly populate a pointer in some low-level API.
bytes :: ByteString -> Poking Source #
pokeAndPeek :: PokeAndPeek input output -> input -> Poking Source #
asciiIntegral :: Integral a => a -> Poking Source #