30 instantiations of BufferScope
System.Private.Windows.Core (4)
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (1)
26_bufferScope = new BufferScope<ARGB>(new Span<ARGB>(s, StackSpace), length);
Windows\Win32\Graphics\Gdi\HRGN.cs (1)
16using BufferScope<byte> buffer = new((int)regionDataSize);
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
19using BufferScope<char> buffer = new(stackalloc char[128]);
Windows\Win32\System\Com\ComManagedStream.cs (1)
76using BufferScope<byte> buffer = new(4096);
System.Private.Windows.GdiPlus (1)
System\Drawing\ImageCodecInfoHelper.cs (1)
46using BufferScope<byte> buffer = new((int)size);
System.Windows.Forms (14)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
895using BufferScope<char> buffer = new(256 + 1);
System\Windows\Forms\Control.MetafileDCWrapper.cs (3)
119using BufferScope<byte> imageBuffer = new((int)totalBytesReqd); 120using BufferScope<byte> bitmapInfoBuffer = new 139using BufferScope<byte> aj = new((int)(sizeof(PALETTEENTRY) * colorEntryCount));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2195using BufferScope<char> buffer = new(stackalloc char[128], minimumLength: maxLength);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1573using BufferScope<char> buffer = new(stackalloc char[128], minimumLength: maxLength + 1);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
3069BufferScope<char> buffer = new(maxLength); 3269using (BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1))
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
514using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH + 1]);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
54using BufferScope<byte> bits = new(widthInBytes * size.Height);
System\Windows\Forms\Help\Help.cs (1)
127using BufferScope<char> shortName = new((int)requiredStringSize);
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (1)
13private BufferScope<byte> _buffer = new(sizeInBytes);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
159using BufferScope<byte> bitmapInfoBuffer = new 580using BufferScope<int> buffer = new(stackalloc int[40], totalData);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ByteViewer.cs (2)
248using BufferScope<char> charsBuffer = new(stackalloc char[256], maxLength); 397using BufferScope<char> charsBuffer = new(stackalloc char[256]);
System.Windows.Forms.Primitives (4)
System\ComponentModel\TypeConverterHelper.cs (1)
32using BufferScope<Range> tokens = new(stackalloc Range[16]);
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
13using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH]);
Windows\Win32\Pinvoke.RegLoadMUIString.cs (1)
15using BufferScope<char> buffer = new(stackalloc char[128]);
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
34using BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1);
System.Windows.Forms.Primitives.Tests (5)
System\BufferScopeTests.cs (5)
11using BufferScope<char> buffer = new(stackalloc char[10]); 20using BufferScope<char> buffer = new(stackalloc char[10]); 31using BufferScope<char> buffer = new(stackalloc char[10]); 46using BufferScope<char> buffer = new(32); 57using BufferScope<char> buffer = new(64);
36 references to BufferScope
System.Private.Windows.Core (9)
System\BufferScope.cs (5)
30/// Create the <see cref="BufferScope{T}"/> with an initial buffer. Useful for creating with an initial stack 40/// Create the <see cref="BufferScope{T}"/> with an initial buffer. Useful for creating with an initial stack 77/// Consider if creating new <see cref="BufferScope{T}"/> instances is possible and cleaner than using 116public static implicit operator Span<T>(BufferScope<T> scope) => scope._span; 118public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope) => scope._span;
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (1)
20private BufferScope<ARGB> _bufferScope;
Windows\Win32\Graphics\Gdi\HRGN.cs (1)
16using BufferScope<byte> buffer = new((int)regionDataSize);
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
19using BufferScope<char> buffer = new(stackalloc char[128]);
Windows\Win32\System\Com\ComManagedStream.cs (1)
76using BufferScope<byte> buffer = new(4096);
System.Private.Windows.GdiPlus (1)
System\Drawing\ImageCodecInfoHelper.cs (1)
46using BufferScope<byte> buffer = new((int)size);
System.Windows.Forms (14)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
895using BufferScope<char> buffer = new(256 + 1);
System\Windows\Forms\Control.MetafileDCWrapper.cs (3)
119using BufferScope<byte> imageBuffer = new((int)totalBytesReqd); 120using BufferScope<byte> bitmapInfoBuffer = new 139using BufferScope<byte> aj = new((int)(sizeof(PALETTEENTRY) * colorEntryCount));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2195using BufferScope<char> buffer = new(stackalloc char[128], minimumLength: maxLength);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1573using BufferScope<char> buffer = new(stackalloc char[128], minimumLength: maxLength + 1);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
3069BufferScope<char> buffer = new(maxLength); 3269using (BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1))
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
514using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH + 1]);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
54using BufferScope<byte> bits = new(widthInBytes * size.Height);
System\Windows\Forms\Help\Help.cs (1)
127using BufferScope<char> shortName = new((int)requiredStringSize);
System\Windows\Forms\Printing\PrinterSettingsExtensions.cs (1)
13private BufferScope<byte> _buffer = new(sizeInBytes);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
159using BufferScope<byte> bitmapInfoBuffer = new 580using BufferScope<int> buffer = new(stackalloc int[40], totalData);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ByteViewer.cs (2)
248using BufferScope<char> charsBuffer = new(stackalloc char[256], maxLength); 397using BufferScope<char> charsBuffer = new(stackalloc char[256]);
System.Windows.Forms.Primitives (4)
System\ComponentModel\TypeConverterHelper.cs (1)
32using BufferScope<Range> tokens = new(stackalloc Range[16]);
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (1)
13using BufferScope<char> buffer = new(stackalloc char[(int)PInvokeCore.MAX_PATH]);
Windows\Win32\Pinvoke.RegLoadMUIString.cs (1)
15using BufferScope<char> buffer = new(stackalloc char[128]);
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
34using BufferScope<char> buffer = new((int)PInvokeCore.MAX_PATH + 1);
System.Windows.Forms.Primitives.Tests (6)
System\BufferScopeTests.cs (5)
11using BufferScope<char> buffer = new(stackalloc char[10]); 20using BufferScope<char> buffer = new(stackalloc char[10]); 31using BufferScope<char> buffer = new(stackalloc char[10]); 46using BufferScope<char> buffer = new(32); 57using BufferScope<char> buffer = new(64);
System\Private\Windows\Core\PrivateCoreTests.cs (1)
12typeof(BufferScope<>).Assembly.GetExportedTypes().Should().BeEmpty();