Safe Haskell | None |
---|---|
Language | Haskell2010 |
Memory access primitives
- chunksToByteString :: (Ptr Word8, [Int]) -> ByteString
- chunksToByteArray :: (Ptr Word8, [Int]) -> (ByteArray, Int)
- data ByteArray :: *
- pokeByteArray :: ByteArray# -> Int -> Int -> Ptr Word8 -> IO (Ptr Word8)
- pokeByteString :: ByteString -> Ptr Word8 -> IO (Ptr Word8)
- unsafeCreateUptoN' :: Int -> (Ptr Word8 -> IO (Int, a)) -> (ByteString, a)
- minusPtr :: Ptr a -> Ptr b -> Int
Documentation
chunksToByteString :: (Ptr Word8, [Int]) -> ByteString Source #
pokeByteString :: ByteString -> Ptr Word8 -> IO (Ptr Word8) Source #
Copy bytestring to given pointer, returns new pointer
unsafeCreateUptoN' :: Int -> (Ptr Word8 -> IO (Int, a)) -> (ByteString, a) Source #