| 280 | } |
| 281 | |
| 282 | ByteVector SubByteReaderLogging::readBytes(const std::string &symbolName, |
| 283 | size_t nrBytes, |
| 284 | const Options & options) |
| 285 | { |
| 286 | try |
| 287 | { |
| 288 | if (!this->byte_aligned()) |
| 289 | throw std::logic_error("Trying to read bytes while not byte aligned."); |
| 290 | |
| 291 | auto [value, code] = SubByteReader::readBytes(nrBytes); |
| 292 | checkAndLog(this->currentTreeLevel, symbolName, options, value, code); |
| 293 | return value; |
| 294 | } |
| 295 | catch (const std::exception &ex) |
| 296 | { |
| 297 | this->logExceptionAndThrowError(ex, " " + std::to_string(nrBytes) + " bytes."); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | void SubByteReaderLogging::logCalculatedValue(const std::string &symbolName, |
| 302 | int64_t value, |
nothing calls this directly
no test coverage detected