Safe Haskell | None |
---|---|
Language | Haskell98 |
- hGetArray :: Handle -> Int -> IO (Array F Word8)
- hGetArrayPre :: Handle -> Int -> Array F Word8 -> IO (Array F Word8)
- hPutArray :: Handle -> Array F Word8 -> IO ()
- hGetArrayFromCSV :: Handle -> IO (Array N (Array N (Array F Char)))
- hPutArrayAsCSV :: (BulkI l1 (Array l2 (Array l3 Char)), BulkI l2 (Array l3 Char), BulkI l3 Char, Unpack (Array l3 Char) t) => Handle -> Array l1 (Array l2 (Array l3 Char)) -> IO ()
Documentation
hGetArray :: Handle -> Int -> IO (Array F Word8) Source
Get data from a file, up to the given number of bytes.
- Data is read into foreign memory without copying it through the GHC heap.
hGetArrayPre :: Handle -> Int -> Array F Word8 -> IO (Array F Word8) Source
Get data from a file, up to the given number of bytes, also copying the given data to the front of the new buffer.
- Data is read into foreign memory without copying it through the GHC heap.
hPutArray :: Handle -> Array F Word8 -> IO () Source
Write data into a file.
- Data is written to file directly from foreign memory, without copying it through the GHC heap.