c# 向stream中写入字节
Stream tstream = new Stream();//这句是不对的,stream的构造函数是保护型的
tstream.WriteByte((byte)borderpoints);
tstream.WriteByte((byte)x);
tstream.WriteByte((byte)y);
我就想实现将边界点数和x,y的值传入流中,怎么实现?
------解决方案--------------------本帖最后由 bdmh 于 2013-06-14 10:38:45 编辑
System.IO.MemoryStream stream = new System.IO.MemoryStream();
stream.Write.....
或
System.IO.Stream stream = new System.IO.MemoryStream();