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

Function ReadLayerID

src/codec/DataTypes.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73Layer* ReadLayerID(DecodeStream* stream) {
74 auto id = stream->readEncodedUint32();
75 if (id > 0) {
76 auto layer = new Layer();
77 layer->id = id;
78 return layer;
79 }
80 return nullptr;
81}
82
83MaskData* ReadMaskID(DecodeStream* stream) {
84 auto id = stream->readEncodedUint32();

Callers 1

readValueMethod · 0.85

Calls 1

readEncodedUint32Method · 0.45

Tested by

no test coverage detected