| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Data.Repa.Scalar.Int
Description
Loading and storing integers directly from/to memory buffers.
Loading
Arguments
| :: Ptr Word8 | Buffer holding digits. |
| -> Int | Length of buffer. |
| -> IO (Maybe (Int, Int)) | Int read, and length of digits. |
Load an ASCII Int from a foreign buffer,
returning the value and number of characters read.
Arguments
| :: Ptr Word8 | Buffer holding digits. |
| -> Int# | Length of buffer. |
| -> (#Int#, Int#, Int##) | Convert success?, value, length read. |
Like loadInt, but via unboxed types.
Arguments
| :: (Int# -> Int#) | Function to get a byte from the source. |
| -> Int# | Length of buffer |
| -> (#Int#, Int#, Int##) | Convert success?, value, length read. |
Like loadInt#, but use the given function to get characters
from the input buffer.