¡@

Home 

c# Programming Glossary: bufferedstream

What is the fastest way to create a checksum for large files in C#

http://stackoverflow.com/questions/1177607/what-is-the-fastest-way-to-create-a-checksum-for-large-files-in-c-sharp

my machine with SHA256 1 minute for MD5 wrap FileStream in BufferedStream and set reasonably sized buffer size I tried with ~1 Mb buffer.. sized buffer size I tried with ~1 Mb buffer Not sure if BufferedStream should be wrapped in using block using var stream new BufferedStream.. should be wrapped in using block using var stream new BufferedStream File.OpenRead filePath 1200000 The rest remains the same share..

Serving large files with C# HttpListener

http://stackoverflow.com/questions/13385633/serving-large-files-with-c-sharp-httplistener

wrote directly to the stream no difference. Introduced a BufferedStream around the base stream no difference. Funny enough if a Thread.Sleep..

Best way to find position in the Stream where given byte sequence starts

http://stackoverflow.com/questions/1471975/best-way-to-find-position-in-the-stream-where-given-byte-sequence-starts

return 1 byte buffer new byte byteSequence.Length using BufferedStream bufStream new BufferedStream stream byteSequence.Length int.. byteSequence.Length using BufferedStream bufStream new BufferedStream stream byteSequence.Length int i while i bufStream.Read buffer..

How do I do a SHA1 File Checksum in C#?

http://stackoverflow.com/questions/1993903/how-do-i-do-a-sha1-file-checksum-in-c

fs new FileStream @ C file location FileMode.Open using BufferedStream bs new BufferedStream fs using SHA1Managed sha1 new SHA1Managed.. C file location FileMode.Open using BufferedStream bs new BufferedStream fs using SHA1Managed sha1 new SHA1Managed byte hash sha1.ComputeHash..

HTTP 407 proxy authentication error when calling a web service

http://stackoverflow.com/questions/2131933/http-407-proxy-authentication-error-when-calling-a-web-service

byte responseBytes new List byte using Stream stream new BufferedStream response.GetResponseStream bufferSize int value while value..

Reading large text files with streams in C#

http://stackoverflow.com/questions/2161895/reading-large-text-files-with-streams-in-c-sharp

else mentioned that you can improve read speed by using a BufferedStream like this using FileStream fs File.Open path FileMode.Open FileAccess.Read.. FileMode.Open FileAccess.Read FileShare.ReadWrite using BufferedStream bs new BufferedStream fs using StreamReader sr new StreamReader.. FileShare.ReadWrite using BufferedStream bs new BufferedStream fs using StreamReader sr new StreamReader bs string line while..

Improving performance of multithreaded HttpWebRequests in .NET

http://stackoverflow.com/questions/388908/improving-performance-of-multithreaded-httpwebrequests-in-net

responseStream httpWebResponse.GetResponseStream using BufferedStream bufferedStream new BufferedStream responseStream using BinaryReader.. using BufferedStream bufferedStream new BufferedStream responseStream using BinaryReader reader new BinaryReader bufferedStream..

HTTPWebResponse + StreamReader Very Slow

http://stackoverflow.com/questions/901323/httpwebresponse-streamreader-very-slow

calls made to the underlying operating system socket using BufferedStream buffer new BufferedStream stream using StreamReader reader new.. operating system socket using BufferedStream buffer new BufferedStream stream using StreamReader reader new StreamReader buffer pageContent..

how to write super fast file streaming code in C#?

http://stackoverflow.com/questions/955911/how-to-write-super-fast-file-streaming-code-in-c