tar-0.6.3.0: Reading, writing and manipulating ".tar" archive files.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Archive.Tar.Index.Utils

Synopsis

Documentation

beToLe Source #

Arguments

:: (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)