MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / HeaderReader

Method HeaderReader

src/asfvideo.cpp:239–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237} // AsfVideo::readMetadata
238
239AsfVideo::HeaderReader::HeaderReader(const BasicIo::UniquePtr& io) : IdBuf_(GUID) {
240 if (io->size() >= io->tell() + GUID + QWORD) {
241 io->readOrThrow(IdBuf_.data(), IdBuf_.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
242
243 size_ = readQWORDTag(io);
244 if (size_ >= GUID + QWORD)
245 remaining_size_ = size_ - GUID - QWORD;
246 }
247}
248
249void AsfVideo::decodeBlock() {
250 Internal::enforce(GUID + QWORD <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);

Callers

nothing calls this directly

Calls 5

readQWORDTagFunction · 0.85
tellMethod · 0.80
readOrThrowMethod · 0.80
dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected