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

Function ReadCompositionID

src/codec/DataTypes.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93Composition* ReadCompositionID(DecodeStream* stream) {
94 auto id = stream->readEncodedUint32();
95 if (id > 0) {
96 auto composition = new Composition();
97 composition->id = id;
98 return composition;
99 }
100 return nullptr;
101}
102
103std::string ReadString(DecodeStream* stream) {
104 return stream->readUTF8String();

Callers 1

readValueMethod · 0.85

Calls 1

readEncodedUint32Method · 0.45

Tested by

no test coverage detected