Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- beToLe :: (Integral i, Num i) => i -> ByteString -> IO (UArray i Word32)
- readInt32BE :: ByteString -> Int -> Int32
- readWord32OffPtrBE :: Ptr Word32 -> Int -> IO Word32
- readWord32BE :: ByteString -> Int -> Word32
Documentation
:: (Integral i, Num i) | |
=> i | The total array length (the number of 32bit words in the array) |
-> ByteString | The bytestring from which the UArray is constructed. The content must start in the first byte! (i.e. the meta-data words that shouldn't be part of the array, must have been dropped already) |
-> IO (UArray i Word32) |
Construct a `UArray Word32 Word32` from a ByteString of 32bit big endian words.
Note: If using unsafePerformIO
, be sure to force the result of running the
IO action right away... (e.g. see calls to beToLe in StringTable)
readInt32BE :: ByteString -> Int -> Int32 Source #
readWord32BE :: ByteString -> Int -> Word32 Source #