csPlatformMemoryMappingPosix Class Reference
Memory mapping for platforms with POSIX mmap() support. More...
Protected Member Functions
|Create a new mapping. |
|void||MapWindow (PlatformMemoryMapping &mapping, size_t offset, size_t len)|
|Map a part of the file into memory and return a pointer to mapped data. |
|void||UnmapWindow (PlatformMemoryMapping &mapping)|
|Unmap a mapping of the file. |
|Destroy file mapping. |
Memory mapping for platforms with POSIX mmap() support.
- This class serves as the platform-dependent part of csMemoryMappedIO, use that for memory mapping support in your application.
Constructor & Destructor Documentation
Create a new mapping.
Destroy file mapping.
Member Function Documentation
|void csPlatformMemoryMappingPosix::MapWindow||(||PlatformMemoryMapping &||mapping,|
Map a part of the file into memory and return a pointer to mapped data.
offset and len are the offset and length of the part of the file to map. Both should be multiples of the granularity returned by GetPageGranularity(); otherwise, the function may fail. Returns 0 in case of failure.
|void csPlatformMemoryMappingPosix::UnmapWindow||(||PlatformMemoryMapping &||mapping||)||
Unmap a mapping of the file.
The documentation for this class was generated from the following file:
Generated for Crystal Space 2.1 by doxygen 1.6.1