Gio.UnixInputStream.new

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

Creates a new Gio.UnixInputStream for the given fd.

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

fd

a UNIX file descriptor

close_fd

true to close the file descriptor when done

Returns

a new Gio.UnixInputStream