Class: Gio::UnixInputStream
- Inherits:
-
InputStream
- Object
- InputStream
- Gio::UnixInputStream
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#close_fd ⇒ Boolean
Returns whether the file descriptor of stream will be closed when the stream is closed.
-
#close_fd=(close_fd) ⇒ Boolean
Whether to close the file descriptor when the stream is closed.
-
#close_fd? ⇒ Boolean
Whether to close the file descriptor when the stream is closed.
-
#fd ⇒ Integer
The file descriptor that the stream reads from.
-
#fd=(fd) ⇒ Integer
The file descriptor that the stream reads from.
-
#initialize(fd, close_fd) ⇒ Gio::InputStream
constructor
Creates a new GUnix::InputStream for the given fd.
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.
Instance Method Details
#close_fd ⇒ Boolean
Returns whether the file descriptor of stream will be closed when the stream is closed.
#close_fd=(close_fd) ⇒ Boolean
Whether to close the file descriptor when the stream is closed.
#close_fd? ⇒ Boolean
Whether to close the file descriptor when the stream is closed.
#fd ⇒ Integer
The file descriptor that the stream reads from.
#fd=(fd) ⇒ Integer
The file descriptor that the stream reads from.