MCPcopy Create free account
hub / github.com/IENT/YUView / readBits

Method readBits

YUViewLib/src/parser/common/SubByteReaderLogging.cpp:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180uint64_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
196bool SubByteReaderLogging::readFlag(const std::string &symbolName, const Options &options)
197{

Callers

nothing calls this directly

Calls 3

checkAndLogFunction · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected