65 #ifdef USE_ULIB_NEW_DELETE 70 _inline
void*
operator new(
size_t Bytes ) {
return mem_Alloc( Bytes ); }
71 _inline
void*
operator new[](
size_t Bytes ) {
return mem_Alloc( Bytes ); }
75 _inline
void*
operator new(
size_t Bytes,
void* pBlk ) {
return mem_Realloc( pBlk, Bytes ); }
76 _inline
void*
operator new[](
size_t Bytes,
void* pBlk ) {
return mem_Realloc( pBlk, Bytes ); }
78 _inline
void operator delete(
void* pBlk ) {
mem_Free( pBlk ); }
79 _inline
void operator delete[](
void* pBlk ) {
mem_Free( pBlk ); }
81 _inline
void operator delete(
void* pBlk,
void* plc ) {
mem_Free( pBlk ); }
82 _inline
void operator delete[](
void* pBlk,
void* plc ) {
mem_Free( pBlk ); }
85 #endif // USE_ULIB_NEW_DELETE 157 #define PHYSICAL_PTR( hmem ) (*(PVOID*)hmem) 208 operator PVOID() {
return _pmem; }
216 bool Flush( PVOID Addr,
size_t Range );
226 #endif //ndef _Memo_h_incl_
PVOID FreeMemoryPages(PVOID pBlk)
HPHYSICAL PhysicalFree(HPHYSICAL hMem)
DWORD GetMemoryPageSize()
void * mem_Realloc(void *pBlk, size_t Bytes)
Interprocess shared memory.
void * mem_Alloc(size_t Bytes)
ULONG_PTR PhysicalPageCount(HPHYSICAL hMem)
#define END_NAMESPACE(name)
UINT GetPageRegionSize(PVOID pBlk)
PVOID GetPageBaseAddress(PVOID pBlk)
bool Flush(PVOID Addr, size_t Range)
void * mem_Free(void *pBlk)
HPHYSICAL PhysicalAlloc(UINT64 nBytes)
#define BEGIN_NAMESPACE(name)
Common include; Added types, small "ubiquitous" utilities, et c.
PVOID AllocMemoryPages(WORD nPages, DWORD Access=PAGE_READWRITE)
SharedMem(size_t Size, CSTR Name)
PVOID GetPageAllocationBase(PVOID pBlk)
PVOID PhysicalPtr(HPHYSICAL hMem)
PVOID const & pData
Const pointer to variable data.
UINT64 PhysicalSize(HPHYSICAL hMem)