| 39 | } |
| 40 | |
| 41 | std::string BinaryReader::ReadNullString() |
| 42 | { |
| 43 | if (m_pReader == nullptr) |
| 44 | { |
| 45 | LOG("BinaryReader doesn't exist! Unable to read binary data...", Warning); |
| 46 | return ""; |
| 47 | } |
| 48 | |
| 49 | std::string buff; |
| 50 | getline(*m_pReader, buff, '\0'); |
| 51 | |
| 52 | return std::string(buff.begin(), buff.end()); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | std::string BinaryReader::ReadString() |