1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +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;
@ -145,9 +145,9 @@ protected:
typedef CUtlHashtable<int, empty_t, UtlSymTableHashFunctor, UtlSymTableEqualFunctor, UtlSymTableAltKey> Hashtable_t;
typedef CUtlVector<MemBlockHandle_t> MemBlocksVec_t;
Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks;
CUtlMemoryBlockAllocator m_MemBlockAllocator;
Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks;
CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
bool m_bInsensitive;
};

View File

@ -227,14 +227,14 @@ 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;
int m_nElementLimit;
bool m_bThrowError;
Hashtable_t m_HashTable;
MemBlocksVec_t m_MemBlocks;
MUTEX_TYPE m_Mutex;
CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
int m_nElementLimit;
bool m_bThrowError;
};
template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE >