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

Method readEncodedInt32

src/codec/utils/DecodeStream.cpp:167–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int32_t DecodeStream::readEncodedInt32() {
168 auto data = readEncodedUint32();
169 auto value = static_cast<int32_t>(data >> 1);
170 return (data & 1) > 0 ? -value : value;
171}
172
173uint32_t DecodeStream::readEncodedUint32() {
174 static const uint32_t valueMask = 127;

Callers 8

readValueMethod · 0.80
ReadRatioFunction · 0.80
ReadVideoSequenceFunction · 0.80
ReadBitmapSequenceFunction · 0.80
ReadSolidColorFunction · 0.80
ReadEditableIndicesFunction · 0.80
ReadImageBytesV3Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected