ptr-0.16.8.5: Experimental abstractions for operations on pointers
Safe HaskellNone
LanguageHaskell2010

Ptr.IO

Synopsis

Documentation

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

peekWord8 :: Ptr Word8 -> IO Word8 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.

peekInt8 :: Ptr Word8 -> IO Int8 Source #

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 copyBytes.

peekShortByteString :: Ptr Word8 -> Int -> IO ShortByteString Source #

peekNullTerminatedShortByteString :: Ptr Word8 -> (Int -> IO ShortByteString -> IO a) -> IO a Source #

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

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

pokeWord8 :: Ptr Word8 -> Word8 -> IO () Source #

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

pokeBEWord16 :: Ptr Word8 -> Word16 -> IO () Source #

pokeBEWord16ByteOff :: Ptr Word8 -> Int -> Word16 -> IO () Source #

pokeBEWord32 :: Ptr Word8 -> Word32 -> IO () Source #

pokeBEWord32ByteOff :: Ptr Word8 -> Int -> Word32 -> IO () Source #

pokeBEWord64 :: Ptr Word8 -> Word64 -> IO () Source #

pokeBEWord64ByteOff :: Ptr Word8 -> Int -> Word64 -> IO () Source #

pokeLEWord16 :: Ptr Word8 -> Word16 -> IO () Source #

pokeLEWord32 :: Ptr Word8 -> Word32 -> IO () Source #

pokeLEWord64 :: Ptr Word8 -> Word64 -> IO () Source #

pokeBytesTrimming :: Ptr Word8 -> Int -> ByteString -> IO () Source #

pokeBytes :: Ptr Word8 -> ByteString -> IO () Source #