Skip to main content

Class ZigZag

See zigzag encoding

Inheritance
System.Object
Inherited Members
Show
Syntax
public static class ZigZag

Methods

Encode(Int32)

Declaration
public static uint Encode(int v)
Parameters
TypeNameDescription
System.Int32v
Returns
TypeDescription
System.UInt32

Encode(Int64)

Declaration
public static ulong Encode(long v)
Parameters
TypeNameDescription
System.Int64v
Returns
TypeDescription
System.UInt64

Decode(UInt32)

Declaration
public static int Decode(uint v)
Parameters
TypeNameDescription
System.UInt32v
Returns
TypeDescription
System.Int32

Decode(UInt64)

Declaration
public static long Decode(ulong v)
Parameters
TypeNameDescription
System.UInt64v
Returns
TypeDescription
System.Int64