DataInputStream.readInt16

Reads a 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.

class DataInputStream
short
readInt16

Parameters

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

Return Value

Type: short

a signed 16-bit/2-byte value read from stream or 0 if an error occurred.

Throws

GException on failure.