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
Type | Name | Description |
---|---|---|
System.Int32 | v |
Returns
Type | Description |
---|---|
System.UInt32 |
Encode(Int64)
Declaration
public static ulong Encode(long v)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | v |
Returns
Type | Description |
---|---|
System.UInt64 |
Decode(UInt32)
Declaration
public static int Decode(uint v)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | v |
Returns
Type | Description |
---|---|
System.Int32 |
Decode(UInt64)
Declaration
public static long Decode(ulong v)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | v |
Returns
Type | Description |
---|---|
System.Int64 |