DataOutputStream.putUint16

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

class DataOutputStream
bool
putUint16

Parameters

data ushort

a #guint16.

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore.

Return Value

Type: bool

true if data was successfully added to the stream.