Method ToHostFrom
ToHostFrom(ByteOrder, Int16)
Converts the byte-order of the provided value in the given byte-order to host byte-order.
Declaration
public static short ToHostFrom(ByteOrder order, short value)
Parameters
| Type |
Name |
Description |
| ByteOrder |
order |
Byte-order of value to convert from. |
| Int16 |
value |
The value to convert in the given byte-order. |
Returns
| Type |
Description |
| Int16 |
Value converted to host byte-order. |
ToHostFrom(ByteOrder, UInt16)
Converts the byte-order of the provided value in the given byte-order to host byte-order.
Declaration
public static ushort ToHostFrom(ByteOrder order, ushort value)
Parameters
| Type |
Name |
Description |
| ByteOrder |
order |
Byte-order of value to convert from. |
| UInt16 |
value |
The value to convert in the given byte-order. |
Returns
| Type |
Description |
| UInt16 |
Value converted to host byte-order. |
ToHostFrom(ByteOrder, Int32)
Converts the byte-order of the provided value in the given byte-order to host byte-order.
Declaration
public static int ToHostFrom(ByteOrder order, int value)
Parameters
| Type |
Name |
Description |
| ByteOrder |
order |
Byte-order of value to convert from. |
| Int32 |
value |
The value to convert in the given byte-order. |
Returns
| Type |
Description |
| Int32 |
Value converted to host byte-order. |
ToHostFrom(ByteOrder, UInt32)
Converts the byte-order of the provided value in the given byte-order to host byte-order.
Declaration
public static uint ToHostFrom(ByteOrder order, uint value)
Parameters
| Type |
Name |
Description |
| ByteOrder |
order |
Byte-order of value to convert from. |
| UInt32 |
value |
The value to convert in the given byte-order. |
Returns
| Type |
Description |
| UInt32 |
Value converted to host byte-order. |
ToHostFrom(ByteOrder, Int64)
Converts the byte-order of the provided value in the given byte-order to host byte-order.
Declaration
public static long ToHostFrom(ByteOrder order, long value)
Parameters
| Type |
Name |
Description |
| ByteOrder |
order |
Byte-order of value to convert from. |
| Int64 |
value |
The value to convert in the given byte-order. |
Returns
| Type |
Description |
| Int64 |
Value converted to host byte-order. |
ToHostFrom(ByteOrder, UInt64)
Converts the byte-order of the provided value in the given byte-order to host byte-order.
Declaration
public static ulong ToHostFrom(ByteOrder order, ulong value)
Parameters
| Type |
Name |
Description |
| ByteOrder |
order |
Byte-order of value to convert from. |
| UInt64 |
value |
The value to convert in the given byte-order. |
Returns
| Type |
Description |
| UInt64 |
Value converted to host byte-order. |