C# Класс Gammtek.Conduit.IO.Converters.ZigZagConverter

The zig zag converter performs a 1-1 and onto mapping of signed integers onto unsigned integers using the transformation defined at: https://developers.google.com/protocol-buffers/docs/encoding This is subsequently used in the VarInt code to handle variable sized signed integers by remapping them to unsigned integers in a highly compressible manner.
Показать файл Открыть проект

Открытые методы

Метод Описание
ZigZag ( this value ) : int

Converts the unsigned value to a signed value invertibly.

ZigZag ( this value ) : long

Converts the unsigned value to a signed value invertibly.

ZigZag ( this value ) : short

Converts the unsigned value to a signed value invertibly.

ZigZag ( this value ) : uint

Converts the signed value to an unsigned value invertibly.

ZigZag ( this value ) : ulong

Converts the signed value to an unsigned value invertibly.

ZigZag ( this value ) : ushort

Converts the signed value to an unsigned value invertibly.

Описание методов

ZigZag() публичный статический Метод

Converts the unsigned value to a signed value invertibly.
public static ZigZag ( this value ) : int
value this
Результат int

ZigZag() публичный статический Метод

Converts the unsigned value to a signed value invertibly.
public static ZigZag ( this value ) : long
value this
Результат long

ZigZag() публичный статический Метод

Converts the unsigned value to a signed value invertibly.
public static ZigZag ( this value ) : short
value this
Результат short

ZigZag() публичный статический Метод

Converts the signed value to an unsigned value invertibly.
public static ZigZag ( this value ) : uint
value this
Результат uint

ZigZag() публичный статический Метод

Converts the signed value to an unsigned value invertibly.
public static ZigZag ( this value ) : ulong
value this
Результат ulong

ZigZag() публичный статический Метод

Converts the signed value to an unsigned value invertibly.
public static ZigZag ( this value ) : ushort
value this
Результат ushort