1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-09 10:39:03 +08:00
hl2sdk/public/tier1/rawallocator.h
vanz666 c0def21c93
Major refactor of utl* classes (#164)
Changed/Added classes: CThreadMutex, CUtlMemoryBlockAllocator, CRawAllocator, CUtlHashtable, CUtlVector, CUtlMemory, CUtlMemory_RawAllocator, CUtlSymbolLarge, CUtlSymbolTableLargeBase
2023-10-13 20:16:09 +03:00

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