decodeVarInt7 static method
Decodes a varInt7.
Implementation
static decodeVarInt7(int b0) {
final signBit = (b0 & 0x40) >> 6;
final absValue = b0 & 0x3F;
final int decoded;
if (signBit == 1) {
if (absValue == 0) {
return -64;
}
decoded = -absValue;
} else {
decoded = absValue;
}
return decoded;
}