Given a string named command, I need to create GLib InputStream object How? Thanks
Asked
Active
Viewed 476 times
1 Answers
4
string command = "foobar";
GLib.InputStream input_stream = new GLib.MemoryInputStream.from_data (command.data, GLib.g_free);

nemequ
- 16,623
- 1
- 43
- 62
-
The GLib.g_free call wasn't even what I was looking for, but the better find – andy.holmes Oct 18 '17 at 06:55