Counter Strike : Global Offensive Source Code
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.

27 lines
690 B

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef ISPSHAREDMEMORY_H
  7. #define ISPSHAREDMEMORY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "basetypes.h"
  12. #include "platform.h"
  13. abstract_class ISPSharedMemory
  14. {
  15. public:
  16. virtual bool Init( size_t iSize ) = 0; //Initial implementation assumes the size is fixed/hardcoded, returns true if this call actually created the memory, false if it already existed
  17. virtual uint8 * Base( void ) = 0;
  18. virtual size_t Size( void ) = 0;
  19. virtual void AddRef( void ) = 0;
  20. virtual void Release( void ) = 0;
  21. };
  22. #endif