| 20 | } |
| 21 | |
| 22 | std::string BinaryReader::ReadLongString() |
| 23 | { |
| 24 | if (m_pReader == nullptr) |
| 25 | { |
| 26 | LOG("BinaryReader doesn't exist! Unable to read binary data...", Warning); |
| 27 | return ""; |
| 28 | } |
| 29 | |
| 30 | auto stringLength = Read<uint32>(); |
| 31 | |
| 32 | std::stringstream ss; |
| 33 | for (uint32 i = 0; i<stringLength; ++i) |
| 34 | { |
| 35 | ss << Read<uint8>(); |
| 36 | } |
| 37 | |
| 38 | return (std::string)ss.str(); |
| 39 | } |
| 40 | |
| 41 | std::string BinaryReader::ReadNullString() |
| 42 | { |