Rename ToSpan to AsSpan (#3556)

This commit is contained in:
gdkchan
2022-08-11 18:07:37 -03:00
committed by GitHub
parent f9661a54d2
commit a5ff0024fb
44 changed files with 281 additions and 281 deletions

View File

@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
#pragma warning disable CS0169
private uint _e0;
#pragma warning restore CS0169
public ref uint this[int index] => ref ToSpan()[index];
public Span<uint> ToSpan() => MemoryMarshal.CreateSpan(ref _e0, 256);
public ref uint this[int index] => ref AsSpan()[index];
public Span<uint> AsSpan() => MemoryMarshal.CreateSpan(ref _e0, 256);
}
}