Gio.DataOutputStream.prototype.put_int16

function put_int16(data: Number(gint16), cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for g_data_output_stream_put_int16()
}
  

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

data

a #gint16.

cancellable

optional Gio.Cancellable object, null to ignore.

Returns

true if data was successfully added to the stream.