DataOutputStream.putInt16

Puts a signed 16-bit integer into the output stream.

class DataOutputStream
bool
putInt16

Parameters

data short
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.