From 6cae86eb9cdd9f028cce31d72d4ca52d61dbca1b Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Thu, 6 Jan 2022 11:12:07 -0700 Subject: [PATCH] Disable another warning on fixed array structs --- src/LibHac/Common/FixedArrays/Array1.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array1024.cs | 2 +- src/LibHac/Common/FixedArrays/Array11.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array112.cs | 2 +- src/LibHac/Common/FixedArrays/Array12.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array128.cs | 2 +- src/LibHac/Common/FixedArrays/Array14.cs | 2 +- src/LibHac/Common/FixedArrays/Array144.cs | 2 +- src/LibHac/Common/FixedArrays/Array15.cs | 2 +- src/LibHac/Common/FixedArrays/Array16.cs | 2 +- src/LibHac/Common/FixedArrays/Array18.cs | 2 +- src/LibHac/Common/FixedArrays/Array2.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array20.cs | 2 +- src/LibHac/Common/FixedArrays/Array2048.cs | 2 +- src/LibHac/Common/FixedArrays/Array24.cs | 2 +- src/LibHac/Common/FixedArrays/Array256.cs | 2 +- src/LibHac/Common/FixedArrays/Array26.cs | 2 +- src/LibHac/Common/FixedArrays/Array28.cs | 2 +- src/LibHac/Common/FixedArrays/Array3.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array3000.cs | 2 +- src/LibHac/Common/FixedArrays/Array32.cs | 2 +- src/LibHac/Common/FixedArrays/Array36.cs | 2 +- src/LibHac/Common/FixedArrays/Array37.cs | 2 +- src/LibHac/Common/FixedArrays/Array38.cs | 2 +- src/LibHac/Common/FixedArrays/Array4.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array400.cs | 2 +- src/LibHac/Common/FixedArrays/Array48.cs | 2 +- src/LibHac/Common/FixedArrays/Array5.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array512.cs | 2 +- src/LibHac/Common/FixedArrays/Array56.cs | 2 +- src/LibHac/Common/FixedArrays/Array6.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array60.cs | 2 +- src/LibHac/Common/FixedArrays/Array64.cs | 2 +- src/LibHac/Common/FixedArrays/Array65.cs | 2 +- src/LibHac/Common/FixedArrays/Array7.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array768.cs | 2 +- src/LibHac/Common/FixedArrays/Array769.cs | 2 +- src/LibHac/Common/FixedArrays/Array8.cs | 8 ++++---- src/LibHac/Common/FixedArrays/Array80.cs | 2 +- 39 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/LibHac/Common/FixedArrays/Array1.cs b/src/LibHac/Common/FixedArrays/Array1.cs index f468055f..2c82579a 100644 --- a/src/LibHac/Common/FixedArrays/Array1.cs +++ b/src/LibHac/Common/FixedArrays/Array1.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,12 +8,12 @@ public struct Array1 { public const int Length = 1; - private T _1; + private T _0; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array1 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array1024.cs b/src/LibHac/Common/FixedArrays/Array1024.cs index a1ef6dab..27895286 100644 --- a/src/LibHac/Common/FixedArrays/Array1024.cs +++ b/src/LibHac/Common/FixedArrays/Array1024.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array11.cs b/src/LibHac/Common/FixedArrays/Array11.cs index 251d6c68..55d19190 100644 --- a/src/LibHac/Common/FixedArrays/Array11.cs +++ b/src/LibHac/Common/FixedArrays/Array11.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,6 +8,7 @@ public struct Array11 { public const int Length = 11; + private T _0; private T _1; private T _2; private T _3; @@ -18,12 +19,11 @@ public struct Array11 private T _8; private T _9; private T _10; - private T _11; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array11 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array112.cs b/src/LibHac/Common/FixedArrays/Array112.cs index a25e7f98..d0bf171e 100644 --- a/src/LibHac/Common/FixedArrays/Array112.cs +++ b/src/LibHac/Common/FixedArrays/Array112.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array12.cs b/src/LibHac/Common/FixedArrays/Array12.cs index fc3d71ce..5a262655 100644 --- a/src/LibHac/Common/FixedArrays/Array12.cs +++ b/src/LibHac/Common/FixedArrays/Array12.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,6 +8,7 @@ public struct Array12 { public const int Length = 12; + private T _0; private T _1; private T _2; private T _3; @@ -19,12 +20,11 @@ public struct Array12 private T _9; private T _10; private T _11; - private T _12; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array12 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array128.cs b/src/LibHac/Common/FixedArrays/Array128.cs index ce253129..8d848188 100644 --- a/src/LibHac/Common/FixedArrays/Array128.cs +++ b/src/LibHac/Common/FixedArrays/Array128.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array14.cs b/src/LibHac/Common/FixedArrays/Array14.cs index 8d309393..28263fd8 100644 --- a/src/LibHac/Common/FixedArrays/Array14.cs +++ b/src/LibHac/Common/FixedArrays/Array14.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array144.cs b/src/LibHac/Common/FixedArrays/Array144.cs index b727dcae..ec10ebeb 100644 --- a/src/LibHac/Common/FixedArrays/Array144.cs +++ b/src/LibHac/Common/FixedArrays/Array144.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array15.cs b/src/LibHac/Common/FixedArrays/Array15.cs index 6c7d6d93..8a21ab04 100644 --- a/src/LibHac/Common/FixedArrays/Array15.cs +++ b/src/LibHac/Common/FixedArrays/Array15.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array16.cs b/src/LibHac/Common/FixedArrays/Array16.cs index 15ad2ad6..732ee8d0 100644 --- a/src/LibHac/Common/FixedArrays/Array16.cs +++ b/src/LibHac/Common/FixedArrays/Array16.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array18.cs b/src/LibHac/Common/FixedArrays/Array18.cs index c69b5990..5343b47e 100644 --- a/src/LibHac/Common/FixedArrays/Array18.cs +++ b/src/LibHac/Common/FixedArrays/Array18.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array2.cs b/src/LibHac/Common/FixedArrays/Array2.cs index 397c1ed3..fcd67bd2 100644 --- a/src/LibHac/Common/FixedArrays/Array2.cs +++ b/src/LibHac/Common/FixedArrays/Array2.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,13 +8,13 @@ public struct Array2 { public const int Length = 2; + private T _0; private T _1; - private T _2; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array2 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array20.cs b/src/LibHac/Common/FixedArrays/Array20.cs index 6d0f12c1..9d07fdfe 100644 --- a/src/LibHac/Common/FixedArrays/Array20.cs +++ b/src/LibHac/Common/FixedArrays/Array20.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array2048.cs b/src/LibHac/Common/FixedArrays/Array2048.cs index bfe46d18..704c5957 100644 --- a/src/LibHac/Common/FixedArrays/Array2048.cs +++ b/src/LibHac/Common/FixedArrays/Array2048.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array24.cs b/src/LibHac/Common/FixedArrays/Array24.cs index d4d833b4..7df3e247 100644 --- a/src/LibHac/Common/FixedArrays/Array24.cs +++ b/src/LibHac/Common/FixedArrays/Array24.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array256.cs b/src/LibHac/Common/FixedArrays/Array256.cs index e6b7b923..fbd9cddf 100644 --- a/src/LibHac/Common/FixedArrays/Array256.cs +++ b/src/LibHac/Common/FixedArrays/Array256.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array26.cs b/src/LibHac/Common/FixedArrays/Array26.cs index d447ae69..0d699aa2 100644 --- a/src/LibHac/Common/FixedArrays/Array26.cs +++ b/src/LibHac/Common/FixedArrays/Array26.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array28.cs b/src/LibHac/Common/FixedArrays/Array28.cs index 24b8beb7..2edb8d8c 100644 --- a/src/LibHac/Common/FixedArrays/Array28.cs +++ b/src/LibHac/Common/FixedArrays/Array28.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array3.cs b/src/LibHac/Common/FixedArrays/Array3.cs index 8a953a33..3a75362c 100644 --- a/src/LibHac/Common/FixedArrays/Array3.cs +++ b/src/LibHac/Common/FixedArrays/Array3.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,14 +8,14 @@ public struct Array3 { public const int Length = 3; + private T _0; private T _1; private T _2; - private T _3; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array3 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array3000.cs b/src/LibHac/Common/FixedArrays/Array3000.cs index bc1fd263..63d99435 100644 --- a/src/LibHac/Common/FixedArrays/Array3000.cs +++ b/src/LibHac/Common/FixedArrays/Array3000.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array32.cs b/src/LibHac/Common/FixedArrays/Array32.cs index 1004dc18..867c8baa 100644 --- a/src/LibHac/Common/FixedArrays/Array32.cs +++ b/src/LibHac/Common/FixedArrays/Array32.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array36.cs b/src/LibHac/Common/FixedArrays/Array36.cs index dae2d49f..1f4cf61b 100644 --- a/src/LibHac/Common/FixedArrays/Array36.cs +++ b/src/LibHac/Common/FixedArrays/Array36.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array37.cs b/src/LibHac/Common/FixedArrays/Array37.cs index 4006cfb4..7d2fba30 100644 --- a/src/LibHac/Common/FixedArrays/Array37.cs +++ b/src/LibHac/Common/FixedArrays/Array37.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array38.cs b/src/LibHac/Common/FixedArrays/Array38.cs index 2c6b8e90..25be2f85 100644 --- a/src/LibHac/Common/FixedArrays/Array38.cs +++ b/src/LibHac/Common/FixedArrays/Array38.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array4.cs b/src/LibHac/Common/FixedArrays/Array4.cs index ea867bec..2e15a502 100644 --- a/src/LibHac/Common/FixedArrays/Array4.cs +++ b/src/LibHac/Common/FixedArrays/Array4.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,15 +8,15 @@ public struct Array4 { public const int Length = 4; + private T _0; private T _1; private T _2; private T _3; - private T _4; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array4 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array400.cs b/src/LibHac/Common/FixedArrays/Array400.cs index 4287386a..013bd114 100644 --- a/src/LibHac/Common/FixedArrays/Array400.cs +++ b/src/LibHac/Common/FixedArrays/Array400.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array48.cs b/src/LibHac/Common/FixedArrays/Array48.cs index ce3268c4..b81e4ea3 100644 --- a/src/LibHac/Common/FixedArrays/Array48.cs +++ b/src/LibHac/Common/FixedArrays/Array48.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array5.cs b/src/LibHac/Common/FixedArrays/Array5.cs index b15e3470..97928b7a 100644 --- a/src/LibHac/Common/FixedArrays/Array5.cs +++ b/src/LibHac/Common/FixedArrays/Array5.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,16 +8,16 @@ public struct Array5 { public const int Length = 5; + private T _0; private T _1; private T _2; private T _3; private T _4; - private T _5; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array5 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array512.cs b/src/LibHac/Common/FixedArrays/Array512.cs index 1a617bb2..2caf57dc 100644 --- a/src/LibHac/Common/FixedArrays/Array512.cs +++ b/src/LibHac/Common/FixedArrays/Array512.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array56.cs b/src/LibHac/Common/FixedArrays/Array56.cs index b03d02cb..fa94bbff 100644 --- a/src/LibHac/Common/FixedArrays/Array56.cs +++ b/src/LibHac/Common/FixedArrays/Array56.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array6.cs b/src/LibHac/Common/FixedArrays/Array6.cs index ac181645..dff18fbc 100644 --- a/src/LibHac/Common/FixedArrays/Array6.cs +++ b/src/LibHac/Common/FixedArrays/Array6.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,17 +8,17 @@ public struct Array6 { public const int Length = 6; + private T _0; private T _1; private T _2; private T _3; private T _4; private T _5; - private T _6; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array6 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array60.cs b/src/LibHac/Common/FixedArrays/Array60.cs index 3cab17e7..f66c3b4f 100644 --- a/src/LibHac/Common/FixedArrays/Array60.cs +++ b/src/LibHac/Common/FixedArrays/Array60.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array64.cs b/src/LibHac/Common/FixedArrays/Array64.cs index 7f63f75a..a395eccd 100644 --- a/src/LibHac/Common/FixedArrays/Array64.cs +++ b/src/LibHac/Common/FixedArrays/Array64.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array65.cs b/src/LibHac/Common/FixedArrays/Array65.cs index 08882816..bdd5896d 100644 --- a/src/LibHac/Common/FixedArrays/Array65.cs +++ b/src/LibHac/Common/FixedArrays/Array65.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array7.cs b/src/LibHac/Common/FixedArrays/Array7.cs index a64b7207..f87a13dc 100644 --- a/src/LibHac/Common/FixedArrays/Array7.cs +++ b/src/LibHac/Common/FixedArrays/Array7.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,18 +8,18 @@ public struct Array7 { public const int Length = 7; + private T _0; private T _1; private T _2; private T _3; private T _4; private T _5; private T _6; - private T _7; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array7 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array768.cs b/src/LibHac/Common/FixedArrays/Array768.cs index 1fb566c2..ded4c986 100644 --- a/src/LibHac/Common/FixedArrays/Array768.cs +++ b/src/LibHac/Common/FixedArrays/Array768.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array769.cs b/src/LibHac/Common/FixedArrays/Array769.cs index 78fbad09..0872ad7c 100644 --- a/src/LibHac/Common/FixedArrays/Array769.cs +++ b/src/LibHac/Common/FixedArrays/Array769.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/LibHac/Common/FixedArrays/Array8.cs b/src/LibHac/Common/FixedArrays/Array8.cs index ac664470..d82bc02d 100644 --- a/src/LibHac/Common/FixedArrays/Array8.cs +++ b/src/LibHac/Common/FixedArrays/Array8.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; @@ -8,6 +8,7 @@ public struct Array8 { public const int Length = 8; + private T _0; private T _1; private T _2; private T _3; @@ -15,12 +16,11 @@ public struct Array8 private T _5; private T _6; private T _7; - private T _8; public ref T this[int i] => ref Items[i]; - public Span Items => SpanHelpers.CreateSpan(ref _1, Length); - public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _1, Length); + public Span Items => SpanHelpers.CreateSpan(ref _0, Length); + public readonly ReadOnlySpan ItemsRo => SpanHelpers.CreateReadOnlySpan(in _0, Length); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator ReadOnlySpan(in Array8 value) => value.ItemsRo; diff --git a/src/LibHac/Common/FixedArrays/Array80.cs b/src/LibHac/Common/FixedArrays/Array80.cs index 186efd72..7cb2c418 100644 --- a/src/LibHac/Common/FixedArrays/Array80.cs +++ b/src/LibHac/Common/FixedArrays/Array80.cs @@ -1,4 +1,4 @@ -#pragma warning disable CS0169, IDE0051 // Remove unused private members +#pragma warning disable CS0169, CS0649, IDE0051 // Field is never used, Field is never assigned to, Remove unused private members using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices;