csgo-2018-source/public/ispsharedmemory.h
2021-07-24 21:11:47 -07:00

28 lines
690 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