Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
953 B

  1. // Gemplus (C) 1999
  2. // Version 1.0
  3. // Author: Sergey Ivanov
  4. // Date of creation - 18.05.1999
  5. // Change log:
  6. //
  7. #ifndef MEM_INT
  8. #define MEM_INT
  9. #include "generic.h"
  10. #pragma PAGEDCODE
  11. class CMemory
  12. {
  13. public:
  14. NTSTATUS m_Status;
  15. SAFE_DESTRUCTORS();
  16. virtual VOID dispose(){self_delete();};
  17. protected:
  18. CMemory(){};
  19. virtual ~CMemory(){};
  20. public:
  21. virtual PVOID allocate(IN POOL_TYPE PoolType,IN SIZE_T NumberOfBytes) {return NULL;};
  22. virtual VOID zero(IN PVOID pMem,IN SIZE_T size) {};
  23. virtual VOID free(IN PVOID pMem) {};
  24. virtual VOID copy(IN VOID UNALIGNED *Destination,IN CONST VOID UNALIGNED *Source, IN SIZE_T Length) {};
  25. virtual PVOID mapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress,IN SIZE_T NumberOfBytes,IN MEMORY_CACHING_TYPE CacheType) {return NULL;};
  26. virtual VOID unmapIoSpace(IN PVOID BaseAddress,IN SIZE_T NumberOfBytes) {};
  27. virtual VOID set(IN VOID UNALIGNED *Destination,IN SIZE_T Length,LONG Fill) {};
  28. };
  29. #endif//MEMORY