Converts the order of elements in the specified byte array to
host (this computer architecture) byte order.
Namespace:
Sfs2X.WebSocketSharp
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public static byte[] ToHostOrder(
this byte[] source,
ByteOrder sourceOrder
)
Parameters
- source
- Type: SystemByte
An array of Byte to convert.
- sourceOrder
- Type: Sfs2X.WebSocketSharpByteOrder
One of the ByteOrder enum values.
It specifies the order of elements in source.
Return Value
Type:
Byte
An array of Byte converted from
source.
Or source if the number of elements in it
is less than 2 or sourceOrder is same as
host byte order.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentNullException | source is .
|
See Also