Tuesday, 15 January 2013

c# - Might a Stream write less than the buffer size? -



c# - Might a Stream write less than the buffer size? -

the intellisenses stream.read , stream.write similar. leads me question of whether write has same gotcha read - reads at most many bytes in buffer. not filling buffer when there more read.

msdn doesn't seem there is. i'm still asking because tricky "feature" - since usually works fine - 1 might not encounter while testing.

no, write write everything inquire to. may buffered along way, don't need worry "rewriting" in same way repeatedly read data.

c# .net

No comments:

Post a Comment