Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Poking = Poking !Int (Ptr Word8 -> IO ())
- null :: Poking -> Bool
- length :: Poking -> Int
- word8 :: Word8 -> Poking
- leWord16 :: Word16 -> Poking
- leWord32 :: Word32 -> Poking
- leWord64 :: Word64 -> Poking
- beWord16 :: Word16 -> 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
- vector :: Vector vector element => (element -> Poking) -> vector element -> Poking
- intercalateVector :: Vector vector element => (element -> Poking) -> Poking -> vector 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.
Poking !Int (Ptr Word8 -> IO ()) |
|
bytes :: ByteString -> Poking Source #
pokeAndPeek :: PokeAndPeek input output -> input -> Poking Source #
asciiIntegral :: Integral a => a -> Poking Source #
Unsigned ASCII integral