util.Channels.readNetInt16

Reads next two bytes from a base.Channel as a 16 bit integer, in network byte order.

Syntax

Important:

This feature is experimental, the syntax/name and semantics/behavior may change in a future version.

util.Channels.readNetInt16(
     in base.Channel )
RETURNS SMALLINT
  1. in is the channel to read from.
  2. Returns the 16 bit integer.

Usage

The util.Channels.readNetInt16() reads two bytes as a 16 bit integer, using the network byte order convention, from a base.Channel object.