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
27 lines
690 B
//===== 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
|