Click here to Skip to main content
15,895,084 members
Articles / Programming Languages / C#

Reading Streams, The Exact Length Way

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
30 Jul 2021CPOL3 min read 9.1K   3  
A demonstration about how to read an exact number of bytes from Stream objects
This is a demonstration about how to read from a Stream in one single call, while still reading a guaranteed number of bytes. The example tries to provide developers with a quick solution for exact length Stream reads, using extension methods.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Portugal Portugal
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions