我们什么时候会使用内存流?
when will we use memory stream?
MemoryStream 是一种对实现流的byte[] 的包装器。当您有从 Stream 读取或写入的类时,您需要它,但您需要获取/设置原始字节。
MemoryStream
byte[]
MemoryStream is kind of wrapper over byte[] that implements stream. You need it when you have class that reads from Stream or writes to it, but you need to get/set raw bytes.
Stream
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
MemoryStream
是一种对实现流的byte[]
的包装器。当您有从 Stream 读取或写入的类时,您需要它,但您需要获取/设置原始字节。MemoryStream
is kind of wrapper overbyte[]
that implements stream. You need it when you have class that reads fromStream
or writes to it, but you need to get/set raw bytes.