DiscardBufferedData上
StreamReader。此处的文档:
编辑:添加代码示例:
Stream s = new MemoryStream();StreamReader sr = new StreamReader(s);// later... after we read stuffs.Position = 0;sr.DiscardBufferedData(); // reader now reading from position 0
欢迎分享,转载请注明来源:内存溢出
DiscardBufferedData上
StreamReader。此处的文档:
编辑:添加代码示例:
Stream s = new MemoryStream();StreamReader sr = new StreamReader(s);// later... after we read stuffs.Position = 0;sr.DiscardBufferedData(); // reader now reading from position 0
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)