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.
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer

공개 메소드들

메소드 설명
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