Gio.DataOutputStream.prototype.put_byte

function put_byte(data: Number(guint8), cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for g_data_output_stream_put_byte()
}
  

Puts a byte into the output stream.

data

a #guchar.

cancellable

optional Gio.Cancellable object, null to ignore.

Returns

true if data was successfully added to the stream.