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

Function writeSigned32

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

Source from the content-addressed store, hash-verified

109
110template<typename Stream>
111inline void writeSigned32(int value, Stream& out) {
112 writeUnsigned32((value << 1) ^ (value >> 31), out);
113}
114
115template<typename Stream>
116inline void writeUnsigned32(unsigned int value, Stream& out) {

Callers 1

writeSignedVarint32Method · 0.85

Calls 1

writeUnsigned32Function · 0.85

Tested by

no test coverage detected