|
System.Win32.FileMapping | Portability | portable
| Stability | provisional
| Maintainer | Esa Ilari Vuokko <ei@vuokko.info>
|
|
|
|
Description |
A collection of FFI declarations for interfacing with Win32 mapped files.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Maps file fully and returns ForeignPtr and length of the mapped area.
The mapped file is opened read-only and shared reading.
|
|
|
As mapFile, but returns ByteString
|
|
|
|
|
|
:: FilePath | Path
| -> Bool | Write? (False = read-only)
| -> Maybe Bool | Sharing mode, no sharing, share read, share read+write
| -> Integer -> MappedObject -> IO a | Action
| -> IO a | | Opens an existing file and creates mapping object to it.
|
|
|
|
:: MappedObject | Mapped object, from withMappedFile
| -> Integer | Position in file
| -> Int | Size of mapped area
| -> Ptr a -> IO b | Action
| -> IO b | | Maps area into memory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.6.1 |