Class: Gio::UnixOutputStream

Inherits:
OutputStream show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from OutputStream

#clear_pending, #close, #close_async, #close_finish, #flush, #flush_async, #flush_finish, #has_pending, #is_closed, #is_closing, open, #printf, #set_pending, #splice, #splice_async, #splice_finish, #vprintf, #write, #write_all, #write_all_async, #write_all_finish, #write_async, #write_bytes, #write_bytes_async, #write_bytes_finish, #write_finish, #writev, #writev_all, #writev_all_async, #writev_all_finish, #writev_async, #writev_finish

Constructor Details

#initialize(fd, close_fd) ⇒ Gio::OutputStream

Creates a new GUnix::OutputStream for the given fd.

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

Parameters:

  • fd (Integer)

    a UNIX file descriptor

  • close_fd (Boolean)

    true to close the file descriptor when done

Instance Method Details

#close_fdBoolean

Returns whether the file descriptor of stream will be closed when the stream is closed.

Returns:

  • (Boolean)

    true if the file descriptor is closed when done

#close_fd=(close_fd) ⇒ Boolean

Whether to close the file descriptor when the stream is closed.

Parameters:

  • close_fd (Boolean)

Returns:

  • (Boolean)

    close-fd

  • (Boolean)

    close-fd

#close_fd?Boolean

Whether to close the file descriptor when the stream is closed.

Returns:

  • (Boolean)

    close-fd

#fdInteger

The file descriptor that the stream writes to.

Returns:

  • (Integer)

    fd

#fd=(fd) ⇒ Integer

The file descriptor that the stream writes to.

Parameters:

  • fd (Integer)

Returns:

  • (Integer)

    fd

  • (Integer)

    fd