C# 클래스 rencodesharp.BStruct

파일 보기 프로젝트 열기: voltagex/junkcode 1 사용 예제들

공개 메소드들

메소드 설명
GetBytes ( Int32 value, byte buffer, int startIndex ) : void

Gets the bytes of an Int32.

GetBytes ( System.Int64 value, byte buffer, int startingIndex ) : void

Gets the bytes of an Int64.

Pack ( object x, int n ) : string

Pack the object 'x' into (network order byte format).

ToDouble ( byte value, int startIndex ) : double

Converts byte array to Double (64 bit float)

ToFloat ( byte value, int startIndex ) : float

Converts byte array to Float (32 bit float)

ToInt1 ( byte value, int startIndex ) : int

Converts byte array to INT1 (8 bit integer)

ToInt2 ( byte value, int startIndex ) : int

Converts byte array to INT2 (16 bit integer)

ToInt4 ( byte value, int startIndex ) : int

Converts byte array to INT4 (32 bit integer)

ToInt8 ( byte value, int startIndex ) : long

Converts byte array to INT8 (64 bit integer)

Unpack ( string x, int n ) : object

Unpack the string 'x' (network order byte format) into object.

메소드 상세

GetBytes() 공개 정적인 메소드

Gets the bytes of an Int32.
public static GetBytes ( Int32 value, byte buffer, int startIndex ) : void
value System.Int32
buffer byte
startIndex int
리턴 void

GetBytes() 공개 정적인 메소드

Gets the bytes of an Int64.
public static GetBytes ( System.Int64 value, byte buffer, int startingIndex ) : void
value System.Int64
buffer byte
startingIndex int
리턴 void

Pack() 공개 정적인 메소드

Pack the object 'x' into (network order byte format).
public static Pack ( object x, int n ) : string
x object
n int
리턴 string

ToDouble() 공개 정적인 메소드

Converts byte array to Double (64 bit float)
public static ToDouble ( byte value, int startIndex ) : double
value byte
startIndex int
리턴 double

ToFloat() 공개 정적인 메소드

Converts byte array to Float (32 bit float)
public static ToFloat ( byte value, int startIndex ) : float
value byte
startIndex int
리턴 float

ToInt1() 공개 정적인 메소드

Converts byte array to INT1 (8 bit integer)
public static ToInt1 ( byte value, int startIndex ) : int
value byte
startIndex int
리턴 int

ToInt2() 공개 정적인 메소드

Converts byte array to INT2 (16 bit integer)
public static ToInt2 ( byte value, int startIndex ) : int
value byte
startIndex int
리턴 int

ToInt4() 공개 정적인 메소드

Converts byte array to INT4 (32 bit integer)
public static ToInt4 ( byte value, int startIndex ) : int
value byte
startIndex int
리턴 int

ToInt8() 공개 정적인 메소드

Converts byte array to INT8 (64 bit integer)
public static ToInt8 ( byte value, int startIndex ) : long
value byte
startIndex int
리턴 long

Unpack() 공개 정적인 메소드

Unpack the string 'x' (network order byte format) into object.
public static Unpack ( string x, int n ) : object
x string
n int
리턴 object