Class: Gio::UnixInputStream

Inherits:
InputStream show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from InputStream

#clear_pending, #close, #close_async, #close_finish, #has_pending, #is_closed, open, #read, #read_all, #read_all_async, #read_all_finish, #read_all_raw, #read_async, #read_bytes, #read_bytes_async, #read_bytes_finish, #read_finish, #read_raw, #set_pending, #skip, #skip_async, #skip_finish

Constructor Details

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

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

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

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 reads from.

Returns:

  • (Integer)

    fd

#fd=(fd) ⇒ Integer

The file descriptor that the stream reads from.

Parameters:

  • fd (Integer)

Returns:

  • (Integer)

    fd

  • (Integer)

    fd