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

Function readString

src/quicktimevideo.cpp:625–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623} // QuickTimeVideo::decodeBlock
624
625static std::string readString(BasicIo& io, size_t size) {
626 enforce(size <= io.size() - io.tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
627 Exiv2::DataBuf str(size + 1);
628 io.readOrThrow(str.data(), size);
629 str.write_uint8(size, 0); // nul-terminate string
630 return Exiv2::toString(str.data());
631}
632
633void QuickTimeVideo::tagDecoder(Exiv2::DataBuf& buf, size_t size, size_t recursion_depth) {
634 enforce(recursion_depth < max_recursion_depth_, Exiv2::ErrorCode::kerCorruptedMetadata);

Callers 2

tagDecoderMethod · 0.85
userDataDecoderMethod · 0.85

Calls 7

enforceFunction · 0.85
toStringFunction · 0.85
tellMethod · 0.80
readOrThrowMethod · 0.80
dataMethod · 0.80
write_uint8Method · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected