Skip to content

Commit 9bd7981

Browse files
committed
using span
1 parent 5003d67 commit 9bd7981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Base64Scalar.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public unsafe static OperationStatus DecodeFromBase64Scalar(ReadOnlySpan<byte> s
8383
int idx;
8484
// Should be
8585
// Span<byte> buffer = stackalloc byte[4];
86-
byte[] buffer = [0, 0, 0, 0];
86+
Span<byte> buffer = [0, 0, 0, 0];
8787

8888
while (true)
8989
{
@@ -228,7 +228,7 @@ public unsafe static OperationStatus DecodeFromBase64Scalar(ReadOnlySpan<char> s
228228
int idx;
229229
// Should be
230230
// Span<byte> buffer = stackalloc byte[4];
231-
byte[] buffer = [0, 0, 0, 0];
231+
Span<byte> buffer = [0, 0, 0, 0];
232232

233233
while (true)
234234
{
@@ -382,7 +382,7 @@ public unsafe static OperationStatus SafeDecodeFromBase64Scalar(ReadOnlySpan<byt
382382
int idx;
383383
// Should be
384384
// Span<byte> buffer = stackalloc byte[4];
385-
byte[] buffer = [0, 0, 0, 0];
385+
Span<byte> buffer = [0, 0, 0, 0];
386386

387387
while (true)
388388
{
@@ -551,7 +551,7 @@ public unsafe static OperationStatus SafeDecodeFromBase64Scalar(ReadOnlySpan<cha
551551
int idx;
552552
// Should be
553553
// Span<byte> buffer = stackalloc byte[4];
554-
byte[] buffer = [0, 0, 0, 0];
554+
Span<byte> buffer = [0, 0, 0, 0];
555555

556556
while (true)
557557
{

0 commit comments

Comments
 (0)