IO arrays with boxed elements
IOArray · Declaration information is not available.
IO arrays with unboxed elements
IOUArray · Declaration information is not available.
Overloaded mutable array interface
module Data.Array.MArray
Doing I/O with IOUArrays
hGetArray :: Handle -> IOUArray Int Word8 -> Int -> IO Int
Reads a number of Word8s from the specified Handle directly
into an array.
Array in which to place the values
Returns: the number of Word8s actually
read, which might be smaller than the number requested
if the end of file was reached.
HandleHandle to read from
IntNumber of Word8s to read
hPutArray :: Handle -> IOUArray Int Word8 -> Int -> IO ()
Writes an array of Word8 to the specified Handle.
Array to write from
IntNumber of Word8s to write
- Maintainer
- libraries@haskell.org
- Portability
- non-portable (uses Data.Array.MArray)
- Copyright
- (c) The University of Glasgow 2001
- License
- BSD-style (see the file libraries/base/LICENSE)