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

Method ReadString

trinity/Shader/Tr2EffectDescription.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 const char* ReadString( size_t sizeHint = 0 )
71 {
72 uint32_t offset = Read<uint32_t>();
73 if( offset + sizeHint > m_tableSize )
74 {
75 throw std::runtime_error( "Invalid string offset" );
76 }
77 return m_stringTable + offset;
78 }
79
80 const char* ReadStringOptional( size_t length )
81 {

Callers 5

ReadAnnotationsFunction · 0.80
ReadConstantFunction · 0.80
ReadResourceFunction · 0.80
ReadInputFunction · 0.80
ReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected