| 51 | int64_t StreamReader::readInt64() { return static_cast<int64_t>(readUInt64()); } |
| 52 | |
| 53 | std::string StreamReader::readString() { |
| 54 | std::string result; |
| 55 | char c; |
| 56 | |
| 57 | while ((c = static_cast<char>(_inputStream.get())) != '\0') { |
| 58 | result.push_back(c); |
| 59 | } |
| 60 | |
| 61 | return result; |
| 62 | } |
| 63 | |
| 64 | void StreamReader::skip(int64_t numBytes) { |
| 65 | _inputStream.ignore(numBytes); |