C# Class 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.
Afficher le fichier Open project: ME3Explorer/ME3Explorer

Méthodes publiques

Méthode Description
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.

Method Details

ZigZag() public static méthode

Converts the unsigned value to a signed value invertibly.
public static ZigZag ( this value ) : int
value this
Résultat int

ZigZag() public static méthode

Converts the unsigned value to a signed value invertibly.
public static ZigZag ( this value ) : long
value this
Résultat long

ZigZag() public static méthode

Converts the unsigned value to a signed value invertibly.
public static ZigZag ( this value ) : short
value this
Résultat short

ZigZag() public static méthode

Converts the signed value to an unsigned value invertibly.
public static ZigZag ( this value ) : uint
value this
Résultat uint

ZigZag() public static méthode

Converts the signed value to an unsigned value invertibly.
public static ZigZag ( this value ) : ulong
value this
Résultat ulong

ZigZag() public static méthode

Converts the signed value to an unsigned value invertibly.
public static ZigZag ( this value ) : ushort
value this
Résultat ushort