Gio.MemoryInputStream¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gio.InputStream (19), GObject.Object (37), Gio.PollableInputStream (4), Gio.Seekable (5)
- Structs:
 
class  | 
  | 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Gio.MemoryInputStream(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GMemoryInputStreamis a class for using arbitrary memory chunks as input for GIO streaming input operations.As of GLib 2.34,
GMemoryInputStreamimplements [iface`Gio`.PollableInputStream].- classmethod new()[source]¶
 - Returns:
 a new
Gio.InputStream- Return type:
 
Creates a new empty
Gio.MemoryInputStream.
- classmethod new_from_bytes(bytes)[source]¶
 - Parameters:
 bytes (
GLib.Bytes) – aGLib.Bytes- Returns:
 new
Gio.InputStreamread from bytes- Return type:
 
Creates 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 datadestroy (
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.
- add_bytes(bytes)[source]¶
 - Parameters:
 bytes (
GLib.Bytes) – input data
Appends bytes to data that can be read from the input stream.
New in version 2.34.