$system.htoni
Convert an integer from host to network byte order.
|
Usage |
$system.htoni(<value>)
$system.htoni(<value>,<bytecount>)
|
Description |
Converts the integer value in host byte order
to it's network byte order counterpart.
Since the conversion is carried at binary rappresentation
level you must specify the number of bytes you want
the binary rappresentation to have. Valid values are
1 (no conversion), 2 (short), 4 (32 bit int) and 8 (64 bit int).
If omitted, bytecount is assumed to be 4.
|
Syntax Specification |
<integer> $system.htoni(<value:integer>)
<integer> $system.htoni(<value:integer>,<bytecount:integer>)
|