MCPcopy Create free account
hub / github.com/comaps/comaps / WriteVarInt

Function WriteVarInt

libs/coding/varint.hpp:184–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182
183template <typename T, typename TSink>
184void WriteVarInt(TSink & dst, T value)
185{
186 static_assert(std::is_signed<T>::value, "");
187 WriteVarUint(dst, bits::ZigZagEncode(value));
188}
189
190template <typename T, typename TSource>
191T ReadVarInt(TSource & src)

Callers 15

WriteMetalinesSectionFunction · 0.85
EncodePointDeltaFunction · 0.85
WriteFunction · 0.85
TestVarIntFunction · 0.85
UNIT_TESTFunction · 0.85
operator()Method · 0.85
FreezeMethod · 0.85
FreezeMethod · 0.85
SaveMethod · 0.85
WriteNodeFunction · 0.85

Calls 2

WriteVarUintFunction · 0.85
ZigZagEncodeFunction · 0.85

Tested by 2

TestVarIntFunction · 0.68
UNIT_TESTFunction · 0.68