Class Int32Extensions
IO-related extension methods for
Inheritance
System.Object
Int32Extensions
Namespace: X10D.Net
Assembly: X10D.dll
Syntax
public static class Int32Extensions : object
Methods
| Improve this Doc View SourceHostToNetworkOrder(Int32)
Converts a 32-bit signed integer value from host byte order to network byte order.
Declaration
public static int HostToNetworkOrder(this int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to convert, expressed in host byte order. |
Returns
Type | Description |
---|---|
System.Int32 | An integer value, expressed in network byte order. |
NetworkToHostOrder(Int32)
Converts a 32-bit signed integer value from network byte order to host byte order.
Declaration
public static int NetworkToHostOrder(this int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value to convert, expressed in network byte order. |
Returns
Type | Description |
---|---|
System.Int32 | An integer value, expressed in host byte order. |