开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜