Camel.StreamFs

g Camel.Stream Camel.Stream Camel.StreamFs Camel.StreamFs Camel.Stream->Camel.StreamFs GObject.GInterface GObject.GInterface Gio.Seekable Gio.Seekable GObject.GInterface->Gio.Seekable GObject.Object GObject.Object GObject.Object->Camel.Stream Gio.Seekable->Camel.Stream

Subclasses:

None

Methods

Inherited:

Camel.Stream (10), GObject.Object (37), Gio.Seekable (5)

Structs:

GObject.ObjectClass (5)

class

new_with_fd (fd)

class

new_with_name (name, flags, mode)

get_fd ()

Virtual Methods

Inherited:

Camel.Stream (5), GObject.Object (7), Gio.Seekable (5)

Properties

Inherited:

Camel.Stream (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Camel.Stream

r

Class Details

class Camel.StreamFs(**kwargs)
Bases:

Camel.Stream

Abstract:

No

Structure:

Camel.StreamFsClass

classmethod new_with_fd(fd)
Parameters:

fd (int) – a file descriptor

Returns:

a new Camel.StreamFs

Return type:

Camel.Stream

Creates a new fs stream using the given file descriptor fd as the backing store. When the stream is destroyed, the file descriptor will be closed.

classmethod new_with_name(name, flags, mode)
Parameters:
  • name (str) – a local filename

  • flags (int) – flags as in open(2)

  • mode (int) – a file mode

Raises:

GLib.Error

Returns:

the new stream, or None on error

Return type:

Camel.Stream

Creates a new Camel.StreamFs corresponding to the named file, flags, and mode.

get_fd()
Return type:

int

New in version 2.32.