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

Function writeUnsigned32

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

Source from the content-addressed store, hash-verified

114
115template<typename Stream>
116inline void writeUnsigned32(unsigned int value, Stream& out) {
117 while ((value & 0xFFFFFF80) != 0LL) {
118 writeByte((value & 0x7F) | 0x80, out);
119 value >>= 7;
120 }
121 writeByte(value & 0x7F, out);
122}
123
124template<typename Stream>
125inline long long readSigned64(Stream& in) {

Callers 2

writeUnsignedVarint32Method · 0.85
writeSigned32Function · 0.85

Calls 1

writeByteFunction · 0.85

Tested by

no test coverage detected