2

Given a string named command, I need to create GLib InputStream object How? Thanks

lzap
  • 16,417
  • 12
  • 71
  • 108

1 Answers1

4
string command = "foobar";
GLib.InputStream input_stream = new GLib.MemoryInputStream.from_data (command.data, GLib.g_free);
nemequ
  • 16,623
  • 1
  • 43
  • 62