Files
l4d2-internal-base2/l4d2/game/source_engine/classes/utls.h
2022-10-26 17:08:42 +08:00

26 lines
354 B
C++

#pragma once
template < typename T >
struct UtlMemory
{
T& operator[]( int i ) const noexcept
{
return _memory[ i ];
}
T* _memory;
int _allocationCount;
int _growSize;
};
struct UtlString
{
UtlMemory<char> buffer;
int length;
const char* data() const noexcept
{
return buffer._memory;
}
};