On this page
System.Win32.FileMapping
Copyright | (c) Esa Ilari Vuokko 2006 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Description
A collection of FFI declarations for interfacing with Win32 mapped files.
mapFile :: FilePath -> IO (ForeignPtr a, Int) Source
Maps file fully and returns ForeignPtr and length of the mapped area. The mapped file is opened read-only and shared reading.
data MappedObject Source
Constructors
Arguments
Opens an existing file and creates mapping object to it.
Arguments
Maps area into memory.
Enums
Section protection flags
type ProtectSectionFlags = DWORD Source
sEC_COMMIT :: ProtectSectionFlags Source
sEC_IMAGE :: ProtectSectionFlags Source
sEC_NOCACHE :: ProtectSectionFlags Source
sEC_RESERVE :: ProtectSectionFlags Source
Access falgs
type FileMapAccess = DWORD Source
fILE_MAP_ALL_ACCESS :: FileMapAccess Source
fILE_MAP_COPY :: FileMapAccess Source
fILE_MAP_READ :: FileMapAccess Source
fILE_MAP_WRITE :: FileMapAccess Source
fILE_SHARE_WRITE :: ShareMode Source
Mapping files
createFileMapping :: Maybe HANDLE -> ProtectFlags -> DDWORD -> Maybe String -> IO HANDLE Source
openFileMapping :: FileMapAccess -> BOOL -> Maybe String -> IO HANDLE Source
mapViewOfFileEx :: HANDLE -> FileMapAccess -> DDWORD -> SIZE_T -> Ptr a -> IO (Ptr b) Source
mapViewOfFile :: HANDLE -> FileMapAccess -> DDWORD -> SIZE_T -> IO (Ptr a) Source
unmapViewOfFile :: Ptr a -> IO () Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/Win32-2.12.0.0/System-Win32-FileMapping.html