mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
35 lines
779 B
C
35 lines
779 B
C
![]() |
//===== Copyright 1996-2005, Valve Corporation, All rights reserved. ======//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $Workfile: $
|
||
|
// $Date: $
|
||
|
//
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// $Log: $
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//===========================================================================//
|
||
|
|
||
|
#ifndef RAWALLOCATOR_H
|
||
|
#define RAWALLOCATOR_H
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
enum RawAllocatorType_t : uint8
|
||
|
{
|
||
|
RawAllocator_Standard = 0,
|
||
|
RawAllocator_Platform = 1,
|
||
|
};
|
||
|
|
||
|
class CRawAllocator
|
||
|
{
|
||
|
public:
|
||
|
DLL_CLASS_IMPORT static void* Alloc( RawAllocatorType_t eAllocatorType, size_t nSize, size_t* nAdjustedSize );
|
||
|
DLL_CLASS_IMPORT static void Free( RawAllocatorType_t eAllocatorType, void* pMem, size_t nSize );
|
||
|
};
|
||
|
|
||
|
#endif // RAWALLOCATOR_H
|