repa-array-4.2.3.1: Bulk array representations and operators.

Safe HaskellNone
LanguageHaskell98

Data.Repa.Array.Auto.IO

Contents

Description

Raw Array IO.

Synopsis

Via File Names

readFile :: FilePath -> IO (Array Word8) Source #

Read an entire file as an array of bytes.

writeFile :: FilePath -> Array Word8 -> IO () Source #

Write an array of bytes to a file.

appendFile :: FilePath -> Array Word8 -> IO () Source #

Append an array of bytes to a file.

Via File Handles

hGetArray :: Handle -> Int -> IO (Array Word8) Source #

Get data from a file handle, up to the given number of bytes.

hGetArrayPre :: Handle -> Int -> Array Word8 -> IO (Array Word8) Source #

Get data from a file handle, up to the given number of bytes, also copying the given data to the front of the new buffer.

hPutArray :: Handle -> Array Word8 -> IO () Source #

Write data into a file.