开发者

What is C# analog of C fread()?

开发者 https://www.devze.com 2023-01-08 08:24 出处:网络
What is C#analog of C fread()? In C code here we use fread(inbuf, 1, AUDIO_INBUF_SI开发者_C百科ZE, f);

What is C# analog of C fread()?

In C code here we use

fread(inbuf, 1, AUDIO_INBUF_SI开发者_C百科ZE, f);

What could be its exact analog?


The closest would be Stream.Read

byte[] buffer = new byte[8192];
int bytesRead = stream.Read(buffer, 0, buffer.Length);


Stream.Read(...)

http://msdn.microsoft.com/en-us/library/system.io.stream.read.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消