The method ensures the the underlying _Buffer has at least the size specified by the size parameter.
If the capacity of the buffer is to small, the capacity will be increased. As long as the requested size is below 2 megabytes, this method will ensure that the buffer has twice the requested size. Above this limit, a factor of 1.5 is used.
SmartMemoryStream Class | InfiniTec.SystemUtilities Namespace