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