Class: Gio::MemoryOutputStream
- Inherits:
-
OutputStream
- Object
- OutputStream
- Gio::MemoryOutputStream
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#data ⇒ GObject
Pointer to buffer where data will be written.
-
#data=(data) ⇒ GObject
Pointer to buffer where data will be written.
-
#data_size ⇒ Gio::gulong
Size of data written to the buffer.
-
#data_size=(data_size) ⇒ Gio::gulong
Size of data written to the buffer.
-
#destroy_function ⇒ GObject
Function called with the buffer as argument when the stream is destroyed.
-
#destroy_function=(destroy_function) ⇒ GObject
Function called with the buffer as argument when the stream is destroyed.
-
#initialize ⇒ Gio::OutputStream
constructor
Creates a new GMemory::OutputStream, using g_realloc() and g_free() for memory allocation.
-
#realloc_function ⇒ GObject
Function with realloc semantics called to enlarge the buffer.
-
#realloc_function=(realloc_function) ⇒ GObject
Function with realloc semantics called to enlarge the buffer.
-
#size ⇒ Gio::gulong
Current size of the data buffer.
-
#size=(size) ⇒ Gio::gulong
Current size of the data buffer.
-
#steal_as_bytes ⇒ GLib::Bytes
Returns data from the ostream as a #GBytes.
-
#steal_data ⇒ GObject
Gets any loaded data from the ostream.
Methods inherited from OutputStream
#clear_pending, #close, #close_async, #close_finish, #flush, #flush_async, #flush_finish, #has_pending, #is_closed, #is_closing, open, #printf, #set_pending, #splice, #splice_async, #splice_finish, #vprintf, #write, #write_all, #write_all_async, #write_all_finish, #write_async, #write_bytes, #write_bytes_async, #write_bytes_finish, #write_finish, #writev, #writev_all, #writev_all_async, #writev_all_finish, #writev_async, #writev_finish
Constructor Details
#initialize ⇒ Gio::OutputStream
Creates a new GMemory::OutputStream, using g_realloc() and g_free() for memory allocation.
Instance Method Details
#data ⇒ GObject
Pointer to buffer where data will be written.
#data=(data) ⇒ GObject
Pointer to buffer where data will be written.
#data_size ⇒ Gio::gulong
Size of data written to the buffer.
#data_size=(data_size) ⇒ Gio::gulong
Size of data written to the buffer.
#destroy_function ⇒ GObject
Function called with the buffer as argument when the stream is destroyed.
#destroy_function=(destroy_function) ⇒ GObject
Function called with the buffer as argument when the stream is destroyed.
#realloc_function ⇒ GObject
Function with realloc semantics called to enlarge the buffer.
#realloc_function=(realloc_function) ⇒ GObject
Function with realloc semantics called to enlarge the buffer.
#size ⇒ Gio::gulong
Current size of the data buffer.
#size=(size) ⇒ Gio::gulong
Current size of the data buffer.
#steal_as_bytes ⇒ GLib::Bytes
Returns data from the ostream as a #GBytes. ostream must be closed before calling this function.
#steal_data ⇒ GObject
Gets any loaded data from the ostream. Ownership of the data is transferred to the caller; when no longer needed it must be freed using the free function set in ostream's GMemory::OutputStream:destroy-function property.
ostream must be closed before calling this function.