Xmlb.BuilderSourceCtx

g GObject.Object GObject.Object Xmlb.BuilderSourceCtx Xmlb.BuilderSourceCtx GObject.Object->Xmlb.BuilderSourceCtx

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bytes (cancellable)

get_filename ()

get_stream ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Xmlb.BuilderSourceCtx(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Xmlb.BuilderSourceCtxClass

get_bytes(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable, or None

Raises:

GLib.Error

Returns:

a GLib.Bytes

Return type:

GLib.Bytes

Returns the data currently being processed.

If the Xmlb.BuilderSourceCtx is backed by a file, the returned GLib.Bytes may be memory-mapped, and the backing file must not be modified until the GLib.Bytes is destroyed.

New in version 0.1.7.

get_filename()
Returns:

a basename, or None if unset

Return type:

str or None

Returns the basename of the file currently being processed.

New in version 0.1.7.

get_stream()
Returns:

a Gio.InputStream

Return type:

Gio.InputStream

Returns the input stream currently being processed.

New in version 0.1.7.