[Tip]:MemoryStream.GetBuffer() vs. MemoryStream.ToArray()

My blog has moved.
You can view this post at the following address:
http://www.osherove.com/blog/2003/10/7/tipmemorystreamgetbuffer-vs-memorystreamtoarray.html
Published Tuesday, October 07, 2003 3:07 AM by RoyOsherove
Filed under:

Comments

Tuesday, October 07, 2003 3:29 AM by Peter Marshall

# re: [Tip]:MemoryStream.GetBuffer() vs. MemoryStream.ToArray()

I appreciate this tip.
Thursday, October 09, 2003 3:46 AM by TheCshark

# re: [Tip]:MemoryStream.GetBuffer() vs. MemoryStream.ToArray()

I let you know when I start a blog ;-)
Tuesday, March 09, 2004 1:59 PM by Tom W.

# re: [Tip]:MemoryStream.GetBuffer() vs. MemoryStream.ToArray()

Also, GetBuffer() will pad the back end of the byte[] with "\0", depending on the size of the serialized target.