RB.ChunkLoader¶
Subclasses: | None |
---|
Methods¶
Inherited: | GObject.Object (37) |
---|---|
Structs: | GObject.ObjectClass (5) |
class | new () |
cancel () |
|
get_error () |
|
set_callback (callback, *user_data) |
|
start (uri, chunk_size) |
Virtual Methods¶
Inherited: | GObject.Object (7) |
---|
Properties¶
None
Signals¶
Inherited: | GObject.Object (1) |
---|
Class Details¶
-
class
RB.
ChunkLoader
(**kwargs)¶ Bases: GObject.Object
Abstract: No Structure: RB.ChunkLoaderClass
-
classmethod
new
()¶ Returns: RB.ChunkLoader
instanceReturn type: RB.ChunkLoader
Creates and returns a new
RB.ChunkLoader
instance.
-
cancel
()¶ Cancels the loading operation, ensuring that the callback will not be called again.
-
get_error
()¶ Returns: loader error or None
Return type: GLib.Error
If an error has occurred that prevents the loader from providing any further data, this function will return a
GLib.Error
, otherwiseNone
.
-
set_callback
(callback, *user_data)¶ Parameters: - callback (
RB.ChunkLoaderCallback
) – the data/error callback - user_data (
object
orNone
) – data to pass to the callback
Sets the loader data callback. This will be called with each chunk of data read, or with
None
to indicate the end of the file or that an error has occurred. To determine which of these is the case, call rb_chunk_loader_get_error.This must be called before rb_chunk_loader_start.
- callback (
-
classmethod