RB.ChunkLoader¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.ChunkLoader(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
RB.ChunkLoader
instance- Return type:
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:
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
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.