System.VarintBitConverter.EncodeZigZag C# (CSharp) 메소드

EncodeZigZag() 개인적인 정적인 메소드

private static EncodeZigZag ( long value, int bitLength ) : long
value long
bitLength int
리턴 long
        private static long EncodeZigZag(long value, int bitLength)
        {
            return (value << 1) ^ (value >> (bitLength - 1));
        }