MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / read7BitEncoded

Method read7BitEncoded

MonaBase/sources/BinaryReader.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53UInt32 BinaryReader::read7BitEncoded() {
54 UInt8 c;
55 UInt32 value = 0;
56 int s = 0;
57 do {
58 c = read8();
59 UInt32 x = (c & 0x7F);
60 x <<= s;
61 value += x;
62 s += 7;
63 } while (c & 0x80);
64 return value;
65}
66
67UInt16 BinaryReader::read16() {
68 UInt16 value(0);

Callers 1

onDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected