| 204 | } |
| 205 | |
| 206 | std::string ReadString() |
| 207 | { |
| 208 | auto byteCount = ReadLEB128(false); |
| 209 | |
| 210 | if (byteCount <= 0) |
| 211 | { |
| 212 | return std::string(); |
| 213 | } |
| 214 | else |
| 215 | { |
| 216 | auto newPtr = CurrentDataPtr + byteCount; |
| 217 | auto result = std::string(CurrentDataPtr, newPtr); |
| 218 | CurrentDataPtr = newPtr; |
| 219 | return result; |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | void LoadItems() |
| 224 | { |
no test coverage detected