public static int ReadZigZag7BitEncodedInt(this Stream stream) { int value = Read7BitEncodedInt(stream); return (value >> 1) ^ (-(value & 1)); }