C-DEngine 5.105

Ext..::..ToHostOrder Method

Converts the order of the specified array of Byte to the host byte order.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static byte[] ToHostOrder(
	byte[] source,
	ByteOrder sourceOrder
)
Public Shared Function ToHostOrder ( _
	source As Byte(), _
	sourceOrder As ByteOrder _
) As Byte()
public:
static array<unsigned char^>^ ToHostOrder(
	array<unsigned char^>^ source, 
	ByteOrder^ sourceOrder
)

Parameters

source
Type: array<Byte>[]()[][]
An array of Byte to convert.
sourceOrder
Type: WebSocketSharp..::..ByteOrder
One of the ByteOrder enum values, specifies the byte order of source.

Return Value

An array of Byte converted from source.

Exceptions


ExceptionCondition
ArgumentNullExceptionsource is nullNothingnullptra null reference (Nothing in Visual Basic).