how to check how many bits in a byte array?
- by newandfresh
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.