Skip to content

Commit 603e1cf

Browse files
committed
Code cleanup
1 parent 252fcd2 commit 603e1cf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
using System.Numerics;
2-
using System.Runtime.CompilerServices;
1+
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
namespace DotNext.Buffers.Binary;
65

76
[StructLayout(LayoutKind.Auto)]
87
internal struct SevenBitEncodedInt32Reader : IBufferReader, ISupplier<int>
98
{
10-
private SevenBitEncodedInteger<uint> value;
9+
private SevenBitEncodedInteger<uint> decoder;
1110
private bool completed;
1211

1312
readonly int IBufferReader.RemainingBytes => Unsafe.BitCast<bool, byte>(!completed);
1413

1514
void IReadOnlySpanConsumer<byte>.Invoke(ReadOnlySpan<byte> source)
16-
=> completed = value.Append(MemoryMarshal.GetReference(source)) is false;
15+
=> completed = decoder.Append(MemoryMarshal.GetReference(source)) is false;
1716

18-
readonly int ISupplier<int>.Invoke() => (int)value.Value;
17+
readonly int ISupplier<int>.Invoke() => (int)decoder.Value;
1918
}

0 commit comments

Comments
 (0)