C# 클래스 Medusa.Siren.IO.IntegerHelper

Helper methods for encoding and decoding integer values.
파일 보기 프로젝트 열기: fjz13/Medusa 1 사용 예제들

공개 메소드들

메소드 설명
DecodeVarUInt16 ( Stream stream ) : ushort
DecodeVarUInt16 ( byte data, int &index ) : ushort
DecodeVarUInt32 ( Stream stream ) : uint
DecodeVarUInt32 ( byte data, int &index ) : uint
DecodeVarUInt64 ( Stream stream ) : ulong
DecodeVarUInt64 ( byte data, int &index ) : ulong
DecodeZigzag ( UInt16 value ) : Int16
DecodeZigzag ( UInt32 value ) : Int32
DecodeZigzag ( System.UInt64 value ) : System.Int64
EncodeVarUInt16 ( byte data, ushort value, int index ) : int
EncodeVarUInt16 ( Stream stream, ushort value ) : void
EncodeVarUInt32 ( byte data, uint value, int index ) : int
EncodeVarUInt32 ( Stream stream, uint value ) : void
EncodeVarUInt64 ( byte data, ulong value, int index ) : int
EncodeVarUInt64 ( Stream stream, ulong value ) : void
EncodeZigzag ( Int16 value ) : UInt16
EncodeZigzag ( Int32 value ) : UInt32
EncodeZigzag ( System.Int64 value ) : System.UInt64

메소드 상세

DecodeVarUInt16() 공개 정적인 메소드

public static DecodeVarUInt16 ( Stream stream ) : ushort
stream Stream
리턴 ushort

DecodeVarUInt16() 공개 정적인 메소드

public static DecodeVarUInt16 ( byte data, int &index ) : ushort
data byte
index int
리턴 ushort

DecodeVarUInt32() 공개 정적인 메소드

public static DecodeVarUInt32 ( Stream stream ) : uint
stream Stream
리턴 uint

DecodeVarUInt32() 공개 정적인 메소드

public static DecodeVarUInt32 ( byte data, int &index ) : uint
data byte
index int
리턴 uint

DecodeVarUInt64() 공개 정적인 메소드

public static DecodeVarUInt64 ( Stream stream ) : ulong
stream Stream
리턴 ulong

DecodeVarUInt64() 공개 정적인 메소드

public static DecodeVarUInt64 ( byte data, int &index ) : ulong
data byte
index int
리턴 ulong

DecodeZigzag() 공개 정적인 메소드

public static DecodeZigzag ( UInt16 value ) : Int16
value System.UInt16
리턴 System.Int16

DecodeZigzag() 공개 정적인 메소드

public static DecodeZigzag ( UInt32 value ) : Int32
value System.UInt32
리턴 System.Int32

DecodeZigzag() 공개 정적인 메소드

public static DecodeZigzag ( System.UInt64 value ) : System.Int64
value System.UInt64
리턴 System.Int64

EncodeVarUInt16() 공개 정적인 메소드

public static EncodeVarUInt16 ( byte data, ushort value, int index ) : int
data byte
value ushort
index int
리턴 int

EncodeVarUInt16() 공개 정적인 메소드

public static EncodeVarUInt16 ( Stream stream, ushort value ) : void
stream Stream
value ushort
리턴 void

EncodeVarUInt32() 공개 정적인 메소드

public static EncodeVarUInt32 ( byte data, uint value, int index ) : int
data byte
value uint
index int
리턴 int

EncodeVarUInt32() 공개 정적인 메소드

public static EncodeVarUInt32 ( Stream stream, uint value ) : void
stream Stream
value uint
리턴 void

EncodeVarUInt64() 공개 정적인 메소드

public static EncodeVarUInt64 ( byte data, ulong value, int index ) : int
data byte
value ulong
index int
리턴 int

EncodeVarUInt64() 공개 정적인 메소드

public static EncodeVarUInt64 ( Stream stream, ulong value ) : void
stream Stream
value ulong
리턴 void

EncodeZigzag() 공개 정적인 메소드

public static EncodeZigzag ( Int16 value ) : UInt16
value System.Int16
리턴 System.UInt16

EncodeZigzag() 공개 정적인 메소드

public static EncodeZigzag ( Int32 value ) : UInt32
value System.Int32
리턴 System.UInt32

EncodeZigzag() 공개 정적인 메소드

public static EncodeZigzag ( System.Int64 value ) : System.UInt64
value System.Int64
리턴 System.UInt64