0
我有几个fds(从Process.spawn_async_with_pipes
获得),我想要读取和写入。现在我看到有多种方式可以这样做:Vala中的文件输入/输出(IOChannel vs FileStream vs IOStream)
- 使用
IOChannel.unix_new
- 使用
FileStream.fdopen
- 使用
UnixInputStream
和UnixOutputStream
是这些API之间的差异和哪一个我应该采取?
相关:https://stackoverflow.com/questions/20846511/read-write-file-pipes-在-VALA-巧舌如簧 –