VariableLengthInlineArray<T>
struct VariableLengthInlineArray<T> where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Windows.Win32
{
internal struct VariableLengthInlineArray<[IsUnmanaged] T> where T : struct
{
internal T e0;
internal ref T this[int index] {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[UnscopedRef]
get {
return ref Unsafe.Add<T>(ref e0, index);
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[UnscopedRef]
internal Span<T> AsSpan(int length)
{
return MemoryMarshal.CreateSpan<T>(ref e0, length);
}
}
}