|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
:: FilePath | The path of the file
| -> IO Int | The size of the file (in bytes)
| Get the size of a file.
|
|
|
|
:: Handle | The output Handle
| -> FilePath | The path where the input file resides
| -> IO () | | A cross-platform wrapper for sendfile -- this implements an available operating-system call if supported, otherwise it falls back to a portable haskell implementation. It will flush the output Handle before handing it to the operating system for transmission.
|
|
|
|
:: Handle | The output Handle
| -> FilePath | The path where the input file resides
| -> Int | The starting offset of the file (in bytes)
| -> Int | The number of bytes to read
| -> IO () | | Like sendFile except that it additionally allows you to specify an offset and count. The behavior of reading beyond the end of the file is undefined.
|
|
|
|
:: String | The mode that sendfile was compiled with
| Returns the mode that sendfile was compiled with. Mainly for debugging use. Possible values are WIN32_SENDFILE, LINUX_SENDFILE, and PORTABLE_SENDFILE.
|
|
|
Produced by Haddock version 2.4.2 |