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

Method readEncodedInt64

src/codec/utils/DecodeStream.cpp:195–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195int64_t DecodeStream::readEncodedInt64() {
196 auto data = readEncodedUint64();
197 auto value = static_cast<int64_t>(data >> 1);
198 return (data & 1) > 0 ? -value : value;
199}
200
201uint64_t DecodeStream::readEncodedUint64() {
202 static const uint64_t valueMask = 127;

Callers 2

ReadPerformanceTagFunction · 0.80
ReadFileAttributesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected