| 7 | uint8_t StreamReader::readByte() const { return static_cast<uint8_t>(_inputStream.get()); } |
| 8 | |
| 9 | void StreamReader::readBytes(std::span<uint8_t> data) const { |
| 10 | if (data.empty()) { |
| 11 | return; |
| 12 | } |
| 13 | _inputStream.read(reinterpret_cast<char *>(&data[0]), static_cast<long>(data.size())); |
| 14 | } |
| 15 | |
| 16 | void StreamReader::readBytes(std::span<int8_t> data) const { |
| 17 | if (data.empty()) { |