C# Class StructureTransform, NoahGameFrame

Exibir arquivo Open project: ketoo/NoahGameFrame Class Usage Examples

Public Methods

Method Description
ByteArrayToStructureEndian ( byte bytearray, object &obj, int startoffset ) : void
Reverse ( byte msg ) : void
Reverse ( byte msg, int nOffest, int nSize ) : void
SetEndian ( bool bIsBig ) : bool
StructureToByteArrayEndian ( object obj ) : byte[]

Method Details

ByteArrayToStructureEndian() public static method

public static ByteArrayToStructureEndian ( byte bytearray, object &obj, int startoffset ) : void
bytearray byte
obj object
startoffset int
return void

Reverse() public static method

public static Reverse ( byte msg ) : void
msg byte
return void

Reverse() public static method

public static Reverse ( byte msg, int nOffest, int nSize ) : void
msg byte
nOffest int
nSize int
return void

SetEndian() public static method

public static SetEndian ( bool bIsBig ) : bool
bIsBig bool
return bool

StructureToByteArrayEndian() public static method

public static StructureToByteArrayEndian ( object obj ) : byte[]
obj object
return byte[]