mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
28 lines
717 B
C
28 lines
717 B
C
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//===========================================================================//
|
|
|
|
#ifndef ISPSHAREDMEMORY_H
|
|
#define ISPSHAREDMEMORY_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "basetypes.h"
|
|
#include "platform.h"
|
|
|
|
abstract_class ISPSharedMemory
|
|
{
|
|
public:
|
|
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
|
|
virtual uint8 * Base( void ) = 0;
|
|
virtual size_t Size( void ) = 0;
|
|
|
|
virtual void AddRef( void ) = 0;
|
|
virtual void Release( void ) = 0;
|
|
};
|
|
|
|
#endif
|