ptr-0.16.8.4: Experimental abstractions for operations on pointers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ptr.IO

Synopsis

Documentation

peekStorable :: Storable storable => Ptr Word8 -> IO storable Source #

peekBEWord16 :: Ptr Word8 -> IO Word16 Source #

Big-endian word of 2 bytes.

peekLEWord16 :: Ptr Word8 -> IO Word16 Source #

Little-endian word of 2 bytes.

peekBEWord32 :: Ptr Word8 -> IO Word32 Source #

Big-endian word of 4 bytes.

peekLEWord32 :: Ptr Word8 -> IO Word32 Source #

Little-endian word of 4 bytes.

peekBEWord64 :: Ptr Word8 -> IO Word64 Source #

Big-endian word of 8 bytes.

peekLEWord64 :: Ptr Word8 -> IO Word64 Source #

Little-endian word of 8 bytes.

peekBEInt16 :: Ptr Word8 -> IO Int16 Source #

Big-endian int of 2 bytes.

peekLEInt16 :: Ptr Word8 -> IO Int16 Source #

Little-endian int of 2 bytes.

peekBEInt32 :: Ptr Word8 -> IO Int32 Source #

Big-endian int of 4 bytes.

peekLEInt32 :: Ptr Word8 -> IO Int32 Source #

Little-endian int of 4 bytes.

peekBEInt64 :: Ptr Word8 -> IO Int64 Source #

Big-endian int of 8 bytes.

peekLEInt64 :: Ptr Word8 -> IO Int64 Source #

Little-endian int of 8 bytes.

peekBytes :: Ptr Word8 -> Int -> IO ByteString Source #

Allocate a new byte array with memcpy.

pokeStorable :: Storable a => Ptr Word8 -> a -> IO () Source #