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