DataOutputStream.putUint16

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

class DataOutputStream
bool
putUint16

Parameters

data ushort

a #guint16.

cancellable Cancellable

optional #GCancellable object, %NULL to ignore.

Return Value

Type: bool

%TRUE if @data was successfully added to the @stream.

Throws

GException on failure.

Meta