1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Partial update to CUtlSymbolTable & CUtlSymbolTableLarge

This commit is contained in:
GAMMACASE
2025-08-01 21:57:25 +03:00
parent 238b0488aa
commit be67203ef4
2 changed files with 12 additions and 12 deletions

View File

@ -125,7 +125,7 @@ protected:
struct UtlSymTableHashFunctor
{
ptrdiff_t m_ownerOffset;
//ptrdiff_t m_ownerOffset;
UtlSymTableHashFunctor();
unsigned int operator()( UtlSymTableAltKey k ) const;
@ -134,7 +134,7 @@ protected:
struct UtlSymTableEqualFunctor
{
ptrdiff_t m_ownerOffset;
//ptrdiff_t m_ownerOffset;
UtlSymTableEqualFunctor();
bool operator()( int a, int b ) const;
@ -147,7 +147,7 @@ protected:
Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks;
CUtlMemoryBlockAllocator m_MemBlockAllocator;
CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
bool m_bInsensitive;
};

View File

@ -227,12 +227,12 @@ private:
};
typedef CUtlHashtable<UtlSymLargeId_t, empty_t, UtlSymTableLargeHashFunctor, UtlSymTableLargeEqualFunctor, UtlSymTableLargeAltKey> Hashtable_t;
typedef CUtlVectorRawAllocator< MemBlockHandle_t > MemBlocksVec_t;
typedef CUtlLeanVector< MemBlockHandle_t > MemBlocksVec_t;
Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks;
MUTEX_TYPE m_Mutex;
CUtlMemoryBlockAllocator m_MemBlockAllocator;
CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
int m_nElementLimit;
bool m_bThrowError;
};