-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A portable sendfile library -- -- A library which exposes zero-copy sendfile functionality in a portable -- way. If a platform does not support sendfile, a fallback -- implementation in haskell is provided. -- -- Currently supported platforms: * Windows 2000+ (Native) * Linux 2.6+ -- (Native) * Everything else (Haskell) @package sendfile @version 0.2 module SendFile -- | Get the size of a file. fileSize :: FilePath -> IO Int -- | 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. sendFile :: Handle -> FilePath -> 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. sendFile' :: Handle -> FilePath -> Int -> Int -> IO () -- | Returns the mode that sendfile was compiled with. Mainly for debugging -- use. Possible values are WIN32_SENDFILE, LINUX_SENDFILE, and -- PORTABLE_SENDFILE. sendFileMode :: String