简体   繁体   中英

How to create InputStream from string in Vala

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

string command = "foobar";
GLib.InputStream input_stream = new GLib.MemoryInputStream.from_data (command.data, GLib.g_free);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM