C#代码如何读取内存数据源码

2024-11-28 01:29:55
推荐回答(1个)
回答1:

MemoryStream youms = new MemoryStream();
byte[] buffer = new byte[256];
int count = ms.Read(buffer, 0, buffer.Length);
while (count>0)
{
//处理你的buffer 吧
count = ms.Read(buffer, 0, buffer.Length);

}