From 94ed3d646c0c55ffddb85f7b8b3124c02bd31485 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sun, 4 Feb 2024 12:42:34 +0900 Subject: [PATCH] typo --- src/DotRecast.Core/Buffers/RcRentedArray.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray128.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray16.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray2.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray256.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray32.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray4.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray512.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray64.cs | 4 ++-- src/DotRecast.Core/Collections/RcStackArray8.cs | 4 ++-- src/DotRecast.Core/{ThrowHelper.cs => RcThrowHelper.cs} | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) rename src/DotRecast.Core/{ThrowHelper.cs => RcThrowHelper.cs} (97%) diff --git a/src/DotRecast.Core/Buffers/RcRentedArray.cs b/src/DotRecast.Core/Buffers/RcRentedArray.cs index 793fdadc..901b603f 100644 --- a/src/DotRecast.Core/Buffers/RcRentedArray.cs +++ b/src/DotRecast.Core/Buffers/RcRentedArray.cs @@ -34,14 +34,14 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return _array[index]; } [MethodImpl(MethodImplOptions.AggressiveInlining)] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); _array[index] = value; } } diff --git a/src/DotRecast.Core/Collections/RcStackArray128.cs b/src/DotRecast.Core/Collections/RcStackArray128.cs index d3caa300..d80afad0 100644 --- a/src/DotRecast.Core/Collections/RcStackArray128.cs +++ b/src/DotRecast.Core/Collections/RcStackArray128.cs @@ -144,7 +144,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -282,7 +282,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray16.cs b/src/DotRecast.Core/Collections/RcStackArray16.cs index 461bff16..df3cb4f8 100644 --- a/src/DotRecast.Core/Collections/RcStackArray16.cs +++ b/src/DotRecast.Core/Collections/RcStackArray16.cs @@ -32,7 +32,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -58,7 +58,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray2.cs b/src/DotRecast.Core/Collections/RcStackArray2.cs index c2e8d400..30affc00 100644 --- a/src/DotRecast.Core/Collections/RcStackArray2.cs +++ b/src/DotRecast.Core/Collections/RcStackArray2.cs @@ -18,7 +18,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -30,7 +30,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray256.cs b/src/DotRecast.Core/Collections/RcStackArray256.cs index 4bb1ee1b..8dec9b94 100644 --- a/src/DotRecast.Core/Collections/RcStackArray256.cs +++ b/src/DotRecast.Core/Collections/RcStackArray256.cs @@ -272,7 +272,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -538,7 +538,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray32.cs b/src/DotRecast.Core/Collections/RcStackArray32.cs index 8f1c8340..acd5e065 100644 --- a/src/DotRecast.Core/Collections/RcStackArray32.cs +++ b/src/DotRecast.Core/Collections/RcStackArray32.cs @@ -48,7 +48,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -90,7 +90,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray4.cs b/src/DotRecast.Core/Collections/RcStackArray4.cs index 55cbb1f8..38d51333 100644 --- a/src/DotRecast.Core/Collections/RcStackArray4.cs +++ b/src/DotRecast.Core/Collections/RcStackArray4.cs @@ -20,7 +20,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -34,7 +34,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray512.cs b/src/DotRecast.Core/Collections/RcStackArray512.cs index 91b4aa23..95b59ae1 100644 --- a/src/DotRecast.Core/Collections/RcStackArray512.cs +++ b/src/DotRecast.Core/Collections/RcStackArray512.cs @@ -528,7 +528,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -1051,7 +1051,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray64.cs b/src/DotRecast.Core/Collections/RcStackArray64.cs index 6d159479..5aa88a31 100644 --- a/src/DotRecast.Core/Collections/RcStackArray64.cs +++ b/src/DotRecast.Core/Collections/RcStackArray64.cs @@ -80,7 +80,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -154,7 +154,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray8.cs b/src/DotRecast.Core/Collections/RcStackArray8.cs index 47a9408d..75e1b154 100644 --- a/src/DotRecast.Core/Collections/RcStackArray8.cs +++ b/src/DotRecast.Core/Collections/RcStackArray8.cs @@ -24,7 +24,7 @@ public T this[int index] [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -42,7 +42,7 @@ public T this[int index] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/ThrowHelper.cs b/src/DotRecast.Core/RcThrowHelper.cs similarity index 97% rename from src/DotRecast.Core/ThrowHelper.cs rename to src/DotRecast.Core/RcThrowHelper.cs index 78047b36..4eb6526a 100644 --- a/src/DotRecast.Core/ThrowHelper.cs +++ b/src/DotRecast.Core/RcThrowHelper.cs @@ -4,7 +4,7 @@ namespace DotRecast.Core { - public static class ThrowHelper + public static class RcThrowHelper { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ThrowExceptionIfIndexOutOfRange(int index, int size)