Reads an unsigned 16-bit/2-byte value from stream.
In order to get the correct byte order for this read operation, see DataInputStream.getByteOrder and DataInputStream.setByteOrder.
optional gio.Cancellable object, NULL to ignore.
an unsigned 16-bit/2-byte value read from the stream or 0 if an error occurred.
GException on failure.
Reads an unsigned 16-bit/2-byte value from stream.
In order to get the correct byte order for this read operation, see DataInputStream.getByteOrder and DataInputStream.setByteOrder.