<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.7.25380.108" />

InlineArrayIndexerExtensions

using System; using System.CodeDom.Compiler; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Windows.Win32 { [GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")] internal static class InlineArrayIndexerExtensions { internal static ReadOnlySpan<char> SliceAtNull(this ReadOnlySpan<char> value) { int num = value.IndexOf(''); if (num >= 0) return value.Slice(0, num); return value; } [return: IsReadOnly] internal unsafe static ref byte ReadOnlyItemRef([In] [IsReadOnly] ref __byte_32 this, int index) { return ref *(byte*)(ref *this.Value + index); } [return: IsReadOnly] internal unsafe static ref char ReadOnlyItemRef([In] [IsReadOnly] ref __char_32 this, int index) { return ref *(char*)(ref *this.Value + (long)(IntPtr)(void*)((long)index * 2)); } [return: IsReadOnly] internal unsafe static ref char ReadOnlyItemRef([In] [IsReadOnly] ref __char_260 this, int index) { return ref *(char*)(ref *this.Value + (long)(IntPtr)(void*)((long)index * 2)); } } }