When is GetBuffer() on MemoryStream ever useful?
The answer is in the GetBuffer() MSDN doc, you might have missed it. When you create a MemoryStream without providing a byte array (byte[]) : it creates an expandable capacity initialized to zero. In other words, the MemoryStream will reference to a byte[] with the proper size when a Write call will be made on … Read more