From dfbdf23633a772e78b47b0e7b0c3e3b87855d9ff Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Mon, 8 Jun 2009 11:45:11 +0200 Subject: Wrap gio.memory_input_stream_new_from_data Add the wrapper for gio.memory_input_stream_new_from_data including docs and a test. --- docs/reference/pygio-classes.xml | 1 + docs/reference/pygio-memoryinputstream.xml | 151 +++++++++++++++++++++++++++++ 2 files changed, 152 insertions(+) create mode 100644 docs/reference/pygio-memoryinputstream.xml (limited to 'docs/reference') diff --git a/docs/reference/pygio-classes.xml b/docs/reference/pygio-classes.xml index 0b385d6..8e5b191 100644 --- a/docs/reference/pygio-classes.xml +++ b/docs/reference/pygio-classes.xml @@ -27,6 +27,7 @@ + diff --git a/docs/reference/pygio-memoryinputstream.xml b/docs/reference/pygio-memoryinputstream.xml new file mode 100644 index 0000000..7d8cffb --- /dev/null +++ b/docs/reference/pygio-memoryinputstream.xml @@ -0,0 +1,151 @@ + + + + + + gio.MemoryInputStream + Base class for implementing streaming input + + + + Synopsis + + + gio.MemoryInputStream + gio.InputStream + + + gio.MemoryInputStream + + + + + + add_data + data + + + + + +Functions + + + gio.memory_input_stream_new_from_data + data + + + + + + Ancestry + ++-- gobject.GObject + +-- gio.InputStream + +-- gio.MemoryInputStream + + + + + + Implemented Interfaces + + gio.MemoryInputStream + implements + gio.Seekable + + + + + Description + + + gio.MemoryInputStream + is a class for using arbitrary memory chunks as input for GIO streaming input operations. + + + + + Constructor + + + gio.MemoryInputStream + icon + + + + Returns : + a new + gio.MemoryInputStream. + + + + + + Creates an empty + gio.MemoryInputStream. + + + + + + Methods + + + gio.MemoryInputStream.add_data + + + add_data + data + + + + + data : + input data. + + + + + + The add_data() method appends data to data + that can be read from the input stream + + + + + + Functions + + + gio.memory_input_stream_new_from_data + + + memory_input_stream_new_from_data + data + + + + + data : + input data. + + + + Returns : + A new + gio.MemoryInputStream + read from data + + + + + + The memory_input_stream_new_from_data() function creates + a new gio.MemoryInputStream + with data in memory. + + + + -- cgit