6 references to EnsureCapacity
System.Private.Windows.Core (1)
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
43buffer.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)));
System.Windows.Forms.Primitives.Tests (2)
System\BufferScopeTests.cs (2)
23buffer.EnsureCapacity(64, copy: true); 49buffer.EnsureCapacity(64, copy: true);