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