| 178 | } |
| 179 | |
| 180 | uint64_t SubByteReaderLogging::readBits(const std::string &symbolName, |
| 181 | size_t numBits, |
| 182 | const Options & options) |
| 183 | { |
| 184 | try |
| 185 | { |
| 186 | auto [value, code] = SubByteReader::readBits(numBits); |
| 187 | checkAndLog(this->currentTreeLevel, "u(v)", symbolName, options, value, code); |
| 188 | return value; |
| 189 | } |
| 190 | catch (const std::exception &ex) |
| 191 | { |
| 192 | this->logExceptionAndThrowError(ex, std::to_string(numBits) + " bit symbol " + symbolName); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | bool SubByteReaderLogging::readFlag(const std::string &symbolName, const Options &options) |
| 197 | { |
nothing calls this directly
no test coverage detected