GHC.Storable

base-4.16.2.0: Basic libraries

Copyright | (c) The FFI task force 2000-2002
License | see libraries/base/LICENSE
Maintainer | ffi@haskell.org
Stability | internal
Portability | non-portable (GHC Extensions)
Safe Haskell | Trustworthy
Language | Haskell2010

GHC.Storable

Description

Helper functions for Foreign.Storable

# Documentation

readWideCharOffPtr :: Ptr Char -> Int -> IO Char Source #

readIntOffPtr :: Ptr Int -> Int -> IO Int Source #

readWordOffPtr :: Ptr Word -> Int -> IO Word Source #

readPtrOffPtr :: Ptr (Ptr a) -> Int -> IO (Ptr a) Source #

readFunPtrOffPtr :: Ptr (FunPtr a) -> Int -> IO (FunPtr a) Source #

readFloatOffPtr :: Ptr Float -> Int -> IO Float Source #

readDoubleOffPtr :: Ptr Double -> Int -> IO Double Source #

readStablePtrOffPtr :: Ptr (StablePtr a) -> Int -> IO (StablePtr a) Source #

readInt8OffPtr :: Ptr Int8 -> Int -> IO Int8 Source #

readInt16OffPtr :: Ptr Int16 -> Int -> IO Int16 Source #

readInt32OffPtr :: Ptr Int32 -> Int -> IO Int32 Source #

readInt64OffPtr :: Ptr Int64 -> Int -> IO Int64 Source #

readWord8OffPtr :: Ptr Word8 -> Int -> IO Word8 Source #

readWord16OffPtr :: Ptr Word16 -> Int -> IO Word16 Source #

readWord32OffPtr :: Ptr Word32 -> Int -> IO Word32 Source #

readWord64OffPtr :: Ptr Word64 -> Int -> IO Word64 Source #

writeWideCharOffPtr :: Ptr Char -> Int -> Char -> IO () Source #

writeIntOffPtr :: Ptr Int -> Int -> Int -> IO () Source #

writeWordOffPtr :: Ptr Word -> Int -> Word -> IO () Source #

writePtrOffPtr :: Ptr (Ptr a) -> Int -> Ptr a -> IO () Source #

writeFunPtrOffPtr :: Ptr (FunPtr a) -> Int -> FunPtr a -> IO () Source #

writeFloatOffPtr :: Ptr Float -> Int -> Float -> IO () Source #

writeDoubleOffPtr :: Ptr Double -> Int -> Double -> IO () Source #

writeStablePtrOffPtr :: Ptr (StablePtr a) -> Int -> StablePtr a -> IO () Source #

writeInt8OffPtr :: Ptr Int8 -> Int -> Int8 -> IO () Source #

writeInt16OffPtr :: Ptr Int16 -> Int -> Int16 -> IO () Source #

writeInt32OffPtr :: Ptr Int32 -> Int -> Int32 -> IO () Source #

writeInt64OffPtr :: Ptr Int64 -> Int -> Int64 -> IO () Source #

writeWord8OffPtr :: Ptr Word8 -> Int -> Word8 -> IO () Source #

writeWord16OffPtr :: Ptr Word16 -> Int -> Word16 -> IO () Source #

writeWord32OffPtr :: Ptr Word32 -> Int -> Word32 -> IO () Source #

writeWord64OffPtr :: Ptr Word64 -> Int -> Word64 -> IO () Source #