4 references to EnsureCapacity
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
41buffer.EnsureCapacity(textLength + 2);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ByteViewer.cs (1)
403charsBuffer.EnsureCapacity(bufferSize + 1);
System.Windows.Forms.Primitives (2)
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
41buffer.EnsureCapacity(Math.Min(buffer.Length * 2, short.MaxValue));
Windows\Win32\Pinvoke.RegLoadMUIString.cs (1)
34buffer.EnsureCapacity((int)(bytes / sizeof(char)));