开发者

How to create InputStream from string in Vala

开发者 https://www.devze.com 2023-03-22 09:36 出处:网络
Given a string named command, I need to create GLib InputStream开发者_运维百科 object How? Thanksstring command = \"foobar\";

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

精彩评论

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

关注公众号