| 252 | return value; |
| 253 | } |
| 254 | std::string read_bytes(size_t length) { |
| 255 | expect(length); |
| 256 | std::string out(reinterpret_cast<const char *>(data_ + cursor_), length); |
| 257 | cursor_ += length; |
| 258 | return out; |
| 259 | } |
| 260 | std::string read_line() { |
| 261 | std::string out; |
| 262 | while (cursor_ < size_ && data_[cursor_] != '\n') { |
no outgoing calls
no test coverage detected