Gio.UnixOutputStream.new

function new(fd: Number(gint), close_fd: Boolean): Gio.OutputStream {
    // Gjs wrapper for g_unix_output_stream_new()
}
  

Creates a new Gio.UnixOutputStream for the given fd.

If close_fd, is true, the file descriptor will be closed when the output stream is destroyed.

fd

a UNIX file descriptor

close_fd

true to close the file descriptor when done

Returns

a new Gio.OutputStream