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

Method writeEncodedInt64

src/codec/utils/EncodeStream.cpp:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void EncodeStream::writeEncodedInt64(int64_t value) {
160 uint64_t flag = value < 0 ? 1 : 0;
161 auto data = static_cast<uint64_t>(value < 0 ? -value : value);
162 data = (data << 1) | flag;
163 writeEncodedUint64(data);
164}
165
166void EncodeStream::writeEncodedUint64(uint64_t value) {
167 static const uint64_t valueMask = 127;

Callers 2

WritePerformanceTagFunction · 0.80
WriteFileAttributesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected