Gio.MemoryInputStream¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | Gio.InputStream (19), GObject.Object (37), Gio.PollableInputStream (4), Gio.Seekable (5) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | new () |
| class | new_from_bytes (bytes) |
| class | new_from_data (data, destroy) |
add_bytes (bytes) |
|
add_data (data, destroy) |
Virtual Methods¶
| Inherited: | Gio.InputStream (9), GObject.Object (7), Gio.PollableInputStream (4), Gio.Seekable (5) |
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) |
|---|
Class Details¶
-
class
Gio.MemoryInputStream(**kwargs)¶ Bases: Gio.InputStream,Gio.PollableInputStream,Gio.SeekableAbstract: No Structure: Gio.MemoryInputStreamClassGio.MemoryInputStreamis a class for using arbitrary memory chunks as input for GIO streaming input operations.As of GLib 2.34,
Gio.MemoryInputStreamimplementsGio.PollableInputStream.-
classmethod
new()[source]¶ Returns: a new Gio.InputStreamReturn type: Gio.InputStreamCreates a new empty
Gio.MemoryInputStream.
-
classmethod
new_from_bytes(bytes)[source]¶ Parameters: bytes ( GLib.Bytes) – aGLib.BytesReturns: new Gio.InputStreamread from bytesReturn type: Gio.InputStreamCreates a new
Gio.MemoryInputStreamwith data from the given bytes.New in version 2.34.
-
classmethod
new_from_data(data, destroy)[source]¶ Parameters: - data (
bytes) – input data - destroy (
GLib.DestroyNotifyorNone) – function that is called to free data, orNone
Returns: new
Gio.InputStreamread from data of len bytes.Return type: Creates a new
Gio.MemoryInputStreamwith data in memory of a given size.- data (
-
add_bytes(bytes)[source]¶ Parameters: bytes ( GLib.Bytes) – input dataAppends bytes to data that can be read from the input stream.
New in version 2.34.
-
classmethod