Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type Poke# s = Addr# -> Int# -> State# s -> (# State# s, Int# #)
- newtype Poke s = Poke {}
- unsafeRunPokeBS :: Int -> Poke RealWorld -> ByteString
- wrapIO :: Poke RealWorld -> Ptr Word8 -> IO ()
- wrapIOUptoN :: Poke RealWorld -> Ptr Word8 -> IO Int
- unsafeRunPokeBSUptoN :: Int -> Poke RealWorld -> ByteString
- prim :: forall a s. Prim' a => a -> Poke s
- byteString :: ByteString -> Poke RealWorld
- byteArray# :: ByteArray# -> Int# -> Int# -> Poke s
- replicateByte :: Int -> Word8 -> Poke RealWorld
Documentation
Poke newtype wrapper.
unsafeRunPokeBS :: Int -> Poke RealWorld -> ByteString Source #
Execute a Poke
at a fresh ByteString
of the given length.
unsafeRunPokeBSUptoN :: Int -> Poke RealWorld -> ByteString Source #
Execute a Poke
at a fresh ByteString
of the given maximum length.
Does not reallocate if final size is less than estimated.
byteString :: ByteString -> Poke RealWorld Source #
byteArray# :: ByteArray# -> Int# -> Int# -> Poke s Source #