MCPcopy Create free account
hub / github.com/Tencent/libpag / readBytes

Method readBytes

src/codec/utils/DecodeStream.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134DecodeStream DecodeStream::readBytes(uint32_t length) {
135 if (!checkEndOfFile(length)) {
136 DecodeStream stream(context, dataView.bytes() + _position, length);
137 positionChanged(length);
138 return stream;
139 }
140 return DecodeStream(context);
141}
142
143std::unique_ptr<ByteData> DecodeStream::readByteData() {
144 auto length = readEncodedUint32();

Callers 5

ReadBodyBytesFunction · 0.45
ReadPerformanceDataMethod · 0.45
ReadTagsFunction · 0.45
ReadMp4HeaderFunction · 0.45

Calls 1

DecodeStreamClass · 0.85

Tested by

no test coverage detected