| ||||||||||||
| ||||||||||||
Description | ||||||||||||
A collection of FFI declarations for interfacing with Win32 mapped files. | ||||||||||||
Synopsis | ||||||||||||
Documentation | ||||||||||||
mapFile :: FilePath -> IO (ForeignPtr a, Int) | ||||||||||||
Maps file fully and returns ForeignPtr and length of the mapped area. The mapped file is opened read-only and shared reading. | ||||||||||||
mapFileBs :: FilePath -> IO ByteString | ||||||||||||
As mapFile, but returns ByteString | ||||||||||||
data MappedObject | ||||||||||||
| ||||||||||||
withMappedFile | ||||||||||||
| ||||||||||||
withMappedArea | ||||||||||||
| ||||||||||||
type ProtectSectionFlags = DWORD | ||||||||||||
sEC_COMMIT :: ProtectSectionFlags | ||||||||||||
sEC_IMAGE :: ProtectSectionFlags | ||||||||||||
sEC_NOCACHE :: ProtectSectionFlags | ||||||||||||
sEC_RESERVE :: ProtectSectionFlags | ||||||||||||
type FileMapAccess = DWORD | ||||||||||||
fILE_MAP_ALL_ACCESS :: FileMapAccess | ||||||||||||
fILE_MAP_COPY :: FileMapAccess | ||||||||||||
fILE_MAP_READ :: FileMapAccess | ||||||||||||
fILE_MAP_WRITE :: FileMapAccess | ||||||||||||
createFileMapping :: Maybe HANDLE -> ProtectFlags -> DDWORD -> Maybe String -> IO HANDLE | ||||||||||||
openFileMapping :: FileMapAccess -> BOOL -> Maybe String -> IO HANDLE | ||||||||||||
mapViewOfFileEx :: HANDLE -> FileMapAccess -> DDWORD -> SIZE_T -> Ptr a -> IO (Ptr b) | ||||||||||||
mapViewOfFile :: HANDLE -> FileMapAccess -> DDWORD -> SIZE_T -> IO (Ptr a) | ||||||||||||
unmapViewOfFile :: Ptr a -> IO () | ||||||||||||
c_OpenFileMapping :: DWORD -> BOOL -> LPCTSTR -> IO HANDLE | ||||||||||||
c_CreateFileMapping :: HANDLE -> Ptr () -> DWORD -> DWORD -> DWORD -> LPCTSTR -> IO HANDLE | ||||||||||||
c_MapViewOfFileEx :: HANDLE -> DWORD -> DWORD -> DWORD -> SIZE_T -> Ptr a -> IO (Ptr b) | ||||||||||||
c_UnmapViewOfFile :: Ptr a -> IO BOOL | ||||||||||||
c_UnmapViewOfFileFinaliser :: FunPtr (Ptr a -> IO ()) | ||||||||||||
Produced by Haddock version 0.8 |