如何在vb.net中声明和使用字节数组 [英] How To declare and use byte array in vb.net

查看:709
本文介绍了如何在vb.net中声明和使用字节数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友
C#.net中的以下代码...

{
long filesize = Mystream.Length;
字节[]缓冲区=新字节[(int)filesize];
Mystream.Read(buffer,0,(int)Mystream.Length);

}
如何在vb.net中转换此代码...或在vb.net中转换相同的代码.

谢谢.
Randeep Chauhan

Hi friends
following code in C#.net...

{
long filesize=Mystream.Length;
byte [] buffer=new byte[(int)filesize];
Mystream.Read(buffer,0,(int)Mystream.Length);

}
How To convert this code in vb.net......or same code in vb.net.

Thanks.
Randeep Chauhan

推荐答案

该是您阅读一些文档的时候了,我想: ^ ](在提供的示例代码中,您可能会找到所需的全部).
It''s time for you to read some documentation, I suppose: FileStream Class[^] at MSDN (in the provided sample code you may find all that''s needed).


这篇关于如何在vb.net中声明和使用字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆