Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CS_CSUTIL_MMAP_DUMMY_H__
00021 #define __CS_CSUTIL_MMAP_DUMMY_H__
00022
00023 #include "csextern.h"
00024
00033 class csPlatformMemoryMappingDummy
00034 {
00035 protected:
00036 struct PlatformMemoryMapping
00037 {
00038 void* realPtr;
00039 };
00040
00042 csPlatformMemoryMappingDummy () {}
00044 ~csPlatformMemoryMappingDummy () {}
00045
00046 bool OpenNative (const char* filename) { return false; }
00047 bool Ok() { return false; }
00048 size_t GetMaxSize () { return 0; }
00049
00050 void MapWindow (PlatformMemoryMapping& mapping, size_t offset, size_t len)
00051 { mapping.realPtr = 0; }
00052 void UnmapWindow (PlatformMemoryMapping& mapping) {}
00053 };
00054
00055
00056 #endif // __CS_CSUTIL_MMAP_DUMMY_H__