| 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 | { |
no outgoing calls
no test coverage detected