Skip to content

Commit bae278e

Browse files
author
Daniel Lemire
committed
removing useless inlining
1 parent 1f34961 commit bae278e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Base64Scalar.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ public static int MaximalBinaryLengthFromBase64Scalar<T>(ReadOnlySpan<T> input)
4545
return length / 4 * 3 + (length % 4) - 1;
4646
}
4747

48-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
4948
public unsafe static OperationStatus DecodeFromBase64Scalar(ReadOnlySpan<byte> source, Span<byte> dest, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
5049
{
51-
52-
53-
5450
byte[] toBase64 = isUrl != false ? Tables.ToBase64UrlValue : Tables.ToBase64Value;
5551
uint[] d0 = isUrl != false ? Base64Url.d0 : Base64Default.d0;
5652
uint[] d1 = isUrl != false ? Base64Url.d1 : Base64Default.d1;
@@ -194,7 +190,6 @@ public static bool IsValidBase64Index(char b)
194190
return b < 256;
195191
}
196192

197-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
198193
public unsafe static OperationStatus DecodeFromBase64Scalar(ReadOnlySpan<char> source, Span<byte> dest, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
199194
{
200195
byte[] toBase64 = isUrl != false ? Tables.ToBase64UrlValue : Tables.ToBase64Value;
@@ -346,7 +341,6 @@ public unsafe static OperationStatus DecodeFromBase64Scalar(ReadOnlySpan<char> s
346341
}
347342

348343
// like DecodeFromBase64Scalar, but it will not write past the end of the ouput buffer.
349-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
350344
public unsafe static OperationStatus SafeDecodeFromBase64Scalar(ReadOnlySpan<byte> source, Span<byte> dest, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
351345
{
352346

@@ -521,7 +515,6 @@ public unsafe static OperationStatus SafeDecodeFromBase64Scalar(ReadOnlySpan<byt
521515
}
522516

523517
// like DecodeFromBase64Scalar, but it will not write past the end of the ouput buffer.
524-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
525518
public unsafe static OperationStatus SafeDecodeFromBase64Scalar(ReadOnlySpan<char> source, Span<byte> dest, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
526519
{
527520
byte[] toBase64 = isUrl != false ? Tables.ToBase64UrlValue : Tables.ToBase64Value;
@@ -757,7 +750,6 @@ public static OperationStatus Base64WithWhiteSpaceToBinaryScalar(ReadOnlySpan<by
757750
return r;
758751
}
759752

760-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
761753
public static OperationStatus Base64WithWhiteSpaceToBinaryScalar(ReadOnlySpan<char> input, Span<byte> output, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
762754
{
763755
int length = input.Length;
@@ -831,7 +823,6 @@ public static int Base64LengthFromBinary(int length, bool isUrl = false)
831823
return (length + 2) / 3 * 4;
832824
}
833825

834-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
835826
public unsafe static OperationStatus SafeBase64ToBinaryWithWhiteSpace(ReadOnlySpan<byte> input, Span<byte> output, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
836827
{
837828
// The implementation could be nicer, but we expect that most times, the user
@@ -931,7 +922,6 @@ public unsafe static OperationStatus SafeBase64ToBinaryWithWhiteSpace(ReadOnlySp
931922
return r;
932923
}
933924

934-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
935925
public unsafe static OperationStatus SafeBase64ToBinaryWithWhiteSpace(ReadOnlySpan<char> input, Span<byte> output, out int bytesConsumed, out int bytesWritten, bool isUrl = false)
936926
{
937927
// The implementation could be nicer, but we expect that most times, the user

0 commit comments

Comments
 (0)