| 69 | } |
| 70 | |
| 71 | const 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 | |
| 82 | size_t StringTable::GetSize() const |
| 83 | { |