Mirage.FilterStream¶
- Subclasses:
None
Methods¶
- Inherited:
Mirage.Object (2), GObject.Object (37), Mirage.Contextual (8), Mirage.Stream (8)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Mirage.Contextual (2), Mirage.Stream (7)
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Mirage.FilterStream(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
All the fields in the
Mirage.FilterStream
structure are private to theMirage.FilterStream
implementation and should never be accessed directly.- get_info()¶
- Returns:
a pointer to filter stream information structure. The structure belongs to object and therefore should not be modified.
- Return type:
Retrieves filter stream information.
- get_underlying_stream()¶
- Returns:
a pointer to filter stream’s underlying stream. The reference belongs to filter stream and should not be released.
- Return type:
Retrieves filter stream’s underlying stream.
- open(stream, writable)¶
- Parameters:
stream (
Mirage.Stream
) – an underlying streamwritable (
bool
) – a flag indicating whether the stream should be opened in read/write mode or not
- Raises:
- Returns:
- Return type:
Opens stream on top of provided underlying stream.
- simplified_get_position()¶
- Returns:
position in the stream
- Return type:
Retrieves position in the stream.
This function is intented for use in filter stream implementations that are based on the simplified interface. It should be used by the implementation’s simplified_partial_read function to determine position to read from without having to worry about position management and update.
- simplified_set_stream_length(length)¶
- Parameters:
length (
int
) – length of the stream
Sets size of the stream.
This function is intented for use in filter stream implementations that are based on the simplified interface. It should be used by the implementation to set the stream size during stream parsing; the set stream size is then used by the read function that is implemented by the simplified interface.
- do_open(stream, writable) virtual¶
- Parameters:
stream (
Mirage.Stream
) – an underlying streamwritable (
bool
) – a flag indicating whether the stream should be opened in read/write mode or not
- Returns:
- Return type:
Opens stream on top of provided underlying stream.
- do_read(buffer, count) virtual¶
-
reads data from stream
- do_seek(offset, type) virtual¶
- Parameters:
offset (
int
) –type (
GLib.SeekType
) –
- Return type:
seeks to a location within stream
- do_simplified_partial_read(buffer, count) virtual¶
-
reads a chunk of requested data from stream (part of simplified interface)
- do_simplified_partial_write(buffer, count) virtual¶
-
writes a chunk of requested data to stream (part of simplified interface)