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