UnixOutputStream

class UnixOutputStream(**properties: Any)

Superclasses: OutputStream, Object

Implemented Interfaces: FileDescriptorBased, PollableOutputStream

Constructors:

UnixOutputStream(**properties)
new(fd:int, close_fd:bool) -> Gio.OutputStream

Constructors

class UnixOutputStream
classmethod new(fd: int, close_fd: bool) OutputStream

Creates a new UnixOutputStream for the given fd.

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

Parameters:
  • fd – a UNIX file descriptor

  • close_fdTrue to close the file descriptor when done

Methods

class UnixOutputStream
get_close_fd() bool

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

Added in version 2.20.

get_fd() int

Return the UNIX file descriptor that the stream writes to.

Added in version 2.20.

set_close_fd(close_fd: bool) None

Sets whether the file descriptor of stream shall be closed when the stream is closed.

Added in version 2.20.

Parameters:

close_fdTrue to close the file descriptor when done

Properties

class UnixOutputStream
props.close_fd: bool

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

Added in version 2.20.

props.fd: int

The file descriptor that the stream writes to.

Added in version 2.20.

Fields

class UnixOutputStream
parent_instance
priv