DataOutputStream.putUint16

Puts an unsigned 16-bit integer into the output stream.

class DataOutputStream
bool
putUint16

Parameters

data ushort
cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

Return Value

Type: bool

TRUE if data was successfully added to the stream.

Throws

GException on failure.