From c5461e58ac19de4563367d933935bad5b573a813 Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Sat, 2 Aug 2025 16:40:07 +0300 Subject: [PATCH] Add CUtlSymbolTableLargeBase::m_nBytesAccumulated member --- public/tier1/utlsymbollarge.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/tier1/utlsymbollarge.h b/public/tier1/utlsymbollarge.h index 0a2d481b..5528dadc 100644 --- a/public/tier1/utlsymbollarge.h +++ b/public/tier1/utlsymbollarge.h @@ -131,7 +131,8 @@ public: m_Mutex( "CUtlSymbolTableLargeBase" ), m_MemBlockAllocator( ( nInitSize > 0 ) ? 8 : 0, PAGE_SIZE ), m_nElementLimit( INT_MAX - 1 ), - m_bThrowError( true ) { } + m_bThrowError( true ), + m_nBytesAccumulated( 0 ) { } ~CUtlSymbolTableLargeBase() { } @@ -210,6 +211,7 @@ private: CUtlMemoryBlockAllocator m_MemBlockAllocator; int m_nElementLimit; bool m_bThrowError; + int m_nBytesAccumulated; }; 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 ); pText[ nLength ] = '\0'; + m_nBytesAccumulated += nLength + 1; + UtlSymLargeId_t id = m_MemBlocks.AddToTail( block + sizeof( LargeSymbolTableHashDecoration_t ) ); UtlSymTableLargeAltKey key;