mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-08 02:58:24 +00:00
Add CUtlSymbolTableLargeBase::m_nBytesAccumulated member
This commit is contained in:
parent
d7ed3b2725
commit
07a2bdb1b3
@ -131,7 +131,8 @@ public:
|
|||||||
m_Mutex( "CUtlSymbolTableLargeBase" ),
|
m_Mutex( "CUtlSymbolTableLargeBase" ),
|
||||||
m_MemBlockAllocator( ( nInitSize > 0 ) ? 8 : 0, PAGE_SIZE ),
|
m_MemBlockAllocator( ( nInitSize > 0 ) ? 8 : 0, PAGE_SIZE ),
|
||||||
m_nElementLimit( INT_MAX - 1 ),
|
m_nElementLimit( INT_MAX - 1 ),
|
||||||
m_bThrowError( true ) { }
|
m_bThrowError( true ),
|
||||||
|
m_nBytesAccumulated( 0 ) { }
|
||||||
|
|
||||||
~CUtlSymbolTableLargeBase() { }
|
~CUtlSymbolTableLargeBase() { }
|
||||||
|
|
||||||
@ -210,6 +211,7 @@ private:
|
|||||||
CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
|
CUtlMemoryBlockAllocator<byte> m_MemBlockAllocator;
|
||||||
int m_nElementLimit;
|
int m_nElementLimit;
|
||||||
bool m_bThrowError;
|
bool m_bThrowError;
|
||||||
|
int m_nBytesAccumulated;
|
||||||
};
|
};
|
||||||
|
|
||||||
template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE >
|
template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE >
|
||||||
@ -257,6 +259,8 @@ inline CUtlSymbolLarge CUtlSymbolTableLargeBase< CASEINSENSITIVE, PAGE_SIZE, MUT
|
|||||||
V_memmove( pText, pString, nLength );
|
V_memmove( pText, pString, nLength );
|
||||||
pText[ nLength ] = '\0';
|
pText[ nLength ] = '\0';
|
||||||
|
|
||||||
|
m_nBytesAccumulated += nLength + 1;
|
||||||
|
|
||||||
UtlSymLargeId_t id = m_MemBlocks.AddToTail( block + sizeof( LargeSymbolTableHashDecoration_t ) );
|
UtlSymLargeId_t id = m_MemBlocks.AddToTail( block + sizeof( LargeSymbolTableHashDecoration_t ) );
|
||||||
|
|
||||||
UtlSymTableLargeAltKey key;
|
UtlSymTableLargeAltKey key;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user