how to check how many bits in a byte array?

Posted by newandfresh on Stack Overflow See other posts from Stack Overflow or by newandfresh
Published on 2011-01-04T13:44:48Z Indexed on 2011/01/04 13:53 UTC
Read the original article Hit count: 160

Filed under:
|
|
|

Im creating a download speed test, and im downloading a 800megabit file to a Byte[] in a memory stream with

webClient.DownloadDataAsync(new Uri(link), memStreamArray); 

How can i check how many bits are in the memStreamArray while downloading? I need this so i can do a calculation on size / time to get the speed in realtime.

Im planing on performing this calculation in the webClient.DownloadProgressChanged event.

© Stack Overflow or respective owner

Related posts about c#

Related posts about bytearray