C# Class XLibrary.Remote.CompactNum

Exibir arquivo Open project: swax/CodePerspective

Public Methods

Method Description
GetBytes ( byte num ) : byte[]
GetBytes ( int num ) : byte[]
GetBytes ( long num ) : byte[]
GetBytes ( sbyte num ) : byte[]
GetBytes ( short num ) : byte[]
GetBytes ( uint num ) : byte[]
GetBytes ( ulong num ) : byte[]
GetBytes ( ushort num ) : byte[]
ToInt16 ( byte data, int pos, int size ) : short
ToInt32 ( byte data, int pos, int size ) : int
ToInt64 ( byte data, int pos, int size ) : long
ToInt8 ( byte data, int pos, int size ) : sbyte
ToUInt16 ( byte data, int pos, int size ) : ushort
ToUInt32 ( byte data, int pos, int size ) : uint
ToUInt64 ( byte data, int pos, int size ) : ulong
ToUInt8 ( byte data, int pos, int size ) : byte

Method Details

GetBytes() public static method

public static GetBytes ( byte num ) : byte[]
num byte
return byte[]

GetBytes() public static method

public static GetBytes ( int num ) : byte[]
num int
return byte[]

GetBytes() public static method

public static GetBytes ( long num ) : byte[]
num long
return byte[]

GetBytes() public static method

public static GetBytes ( sbyte num ) : byte[]
num sbyte
return byte[]

GetBytes() public static method

public static GetBytes ( short num ) : byte[]
num short
return byte[]

GetBytes() public static method

public static GetBytes ( uint num ) : byte[]
num uint
return byte[]

GetBytes() public static method

public static GetBytes ( ulong num ) : byte[]
num ulong
return byte[]

GetBytes() public static method

public static GetBytes ( ushort num ) : byte[]
num ushort
return byte[]

ToInt16() public static method

public static ToInt16 ( byte data, int pos, int size ) : short
data byte
pos int
size int
return short

ToInt32() public static method

public static ToInt32 ( byte data, int pos, int size ) : int
data byte
pos int
size int
return int

ToInt64() public static method

public static ToInt64 ( byte data, int pos, int size ) : long
data byte
pos int
size int
return long

ToInt8() public static method

public static ToInt8 ( byte data, int pos, int size ) : sbyte
data byte
pos int
size int
return sbyte

ToUInt16() public static method

public static ToUInt16 ( byte data, int pos, int size ) : ushort
data byte
pos int
size int
return ushort

ToUInt32() public static method

public static ToUInt32 ( byte data, int pos, int size ) : uint
data byte
pos int
size int
return uint

ToUInt64() public static method

public static ToUInt64 ( byte data, int pos, int size ) : ulong
data byte
pos int
size int
return ulong

ToUInt8() public static method

public static ToUInt8 ( byte data, int pos, int size ) : byte
data byte
pos int
size int
return byte