MCPcopy Create free account
hub / github.com/culvertsoft/mgen / writeUnsigned64

Function writeUnsigned64

mgen-cpplib/src/main/cpp/mgen/serialization/VarInt.h:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101template<typename Stream>
102inline void writeUnsigned64(unsigned long long value, Stream& out) {
103 while ((value & 0xFFFFFFFFFFFFFF80LL) != 0LL) {
104 writeByte((value & 0x7F) | 0x80, out);
105 value >>= 7;
106 }
107 writeByte(value & 0x7F, out);
108}
109
110template<typename Stream>
111inline void writeSigned32(int value, Stream& out) {

Callers 1

writeSigned64Function · 0.85

Calls 1

writeByteFunction · 0.85

Tested by

no test coverage detected