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

Method readSU

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

Source from the content-addressed store, hash-verified

265}
266
267int64_t
268SubByteReaderLogging::readSU(const std::string &symbolName, unsigned nrBits, const Options &options)
269{
270 try
271 {
272 auto [value, code] = SubByteReader::readSU(nrBits);
273 checkAndLog(this->currentTreeLevel, "su(n)", symbolName, options, value, code);
274 return value;
275 }
276 catch (const std::exception &ex)
277 {
278 this->logExceptionAndThrowError(ex, "su symbol " + symbolName);
279 }
280}
281
282ByteVector SubByteReaderLogging::readBytes(const std::string &symbolName,
283 size_t nrBytes,

Callers

nothing calls this directly

Calls 2

checkAndLogFunction · 0.85

Tested by

no test coverage detected