Avro.Util.Zag C# (CSharp) Method

Zag() public static method

public static Zag ( uint ziggedValue ) : int
ziggedValue uint
return int
        public static int Zag(uint ziggedValue)
        {
            int value = (int)ziggedValue;
            return (-(value & 0x01)) ^ ((value >> 1) & ~Util.Int32Msb);
        }

Same methods

Util::Zag ( ulong ziggedValue ) : long