MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetString

Method GetString

shadercompiler/StringTable.cpp:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71const char* StringTable::GetString( StringReference ref )
72{
73 std::lock_guard scope( m_CS );
74 auto it = m_revTable.find( ref );
75 if( it == m_revTable.end() )
76 {
77 return nullptr;
78 }
79 return static_cast<const char*>( it->second.first->m_data );
80}
81
82size_t StringTable::GetSize() const
83{

Callers 6

PrintAnnotationsFunction · 0.45
PrintStageInfoFunction · 0.45
SaveMethod · 0.45
SaveMethod · 0.45
TESTFunction · 0.45
TYPED_TESTFunction · 0.45

Calls 1

endMethod · 0.45

Tested by 2

TESTFunction · 0.36
TYPED_TESTFunction · 0.36