C# Class STUN.NetworkByteArray

显示文件 Open project: RELOAD-NET/RELOAD.NET

Public Methods

Method Description
CreateInt16 ( Int16 int16 ) : Byte[]
CreateInt32 ( Int32 int32 ) : Byte[]
CreateInt64 ( System.Int64 int64 ) : Byte[]
CreateUInt16 ( UInt16 uint16 ) : Byte[]
CreateUInt32 ( UInt32 uint32 ) : Byte[]
CreateUInt64 ( System.UInt64 uint64 ) : Byte[]
ReadInt16 ( Byte byteArray, int startIndex ) : Int16
ReadInt32 ( Byte byteArray, int startIndex ) : Int32
ReadInt64 ( Byte byteArray, int startIndex ) : System.Int64
ReadUInt16 ( Byte byteArray, int startIndex ) : UInt16
ReadUInt32 ( Byte byteArray, int startIndex ) : UInt32
ReadUInt64 ( Byte byteArray, int startIndex ) : System.UInt64

Method Details

CreateInt16() public static method

public static CreateInt16 ( Int16 int16 ) : Byte[]
int16 System.Int16
return Byte[]

CreateInt32() public static method

public static CreateInt32 ( Int32 int32 ) : Byte[]
int32 System.Int32
return Byte[]

CreateInt64() public static method

public static CreateInt64 ( System.Int64 int64 ) : Byte[]
int64 System.Int64
return Byte[]

CreateUInt16() public static method

public static CreateUInt16 ( UInt16 uint16 ) : Byte[]
uint16 System.UInt16
return Byte[]

CreateUInt32() public static method

public static CreateUInt32 ( UInt32 uint32 ) : Byte[]
uint32 System.UInt32
return Byte[]

CreateUInt64() public static method

public static CreateUInt64 ( System.UInt64 uint64 ) : Byte[]
uint64 System.UInt64
return Byte[]

ReadInt16() public static method

public static ReadInt16 ( Byte byteArray, int startIndex ) : Int16
byteArray Byte
startIndex int
return System.Int16

ReadInt32() public static method

public static ReadInt32 ( Byte byteArray, int startIndex ) : Int32
byteArray Byte
startIndex int
return System.Int32

ReadInt64() public static method

public static ReadInt64 ( Byte byteArray, int startIndex ) : System.Int64
byteArray Byte
startIndex int
return System.Int64

ReadUInt16() public static method

public static ReadUInt16 ( Byte byteArray, int startIndex ) : UInt16
byteArray Byte
startIndex int
return System.UInt16

ReadUInt32() public static method

public static ReadUInt32 ( Byte byteArray, int startIndex ) : UInt32
byteArray Byte
startIndex int
return System.UInt32

ReadUInt64() public static method

public static ReadUInt64 ( Byte byteArray, int startIndex ) : System.UInt64
byteArray Byte
startIndex int
return System.UInt64