GNOME Bugzilla – Bug 547354
wrap a few memory stream methods
Last modified: 2008-08-11 22:05:34 UTC
Currently the memory streams are not usable. To become usable we need: - gio.MemoryInputStream.add_data - gio.MemoryOutputStream.__init__ - gio.MemoryOutputStream.get_data Since get_data conflicts with gobject.GObject.get_data, it gets renamed to get_contents instead. Patch follows.
Created attachment 116389 [details] [review] patch implementing the methods
Sending ChangeLog Sending gio/ginputstream.override Sending gio/gio.defs Sending gio/goutputstream.override Sending tests/test_gio.py Transmitting file data ..... Committed revision 944. 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547354 – wrap a few memory stream methods * gio/ginputstream.override (_wrap_g_memory_input_stream_add_data): New function. * gio/gio.defs (gio.MemoryOutputStream.get_contents): Rename from get_data() to avoid name clash. * gio/goutputstream.override (_wrap_g_memory_output_stream_new) (_wrap_g_memory_output_stream_get_data): New functions. * tests/test_gio.py (TestMemoryInputStream) (TestMemoryOutputStream): New test cases.