From 603e1cf51f59c90eb3c5d92e8cef144d9349e48c Mon Sep 17 00:00:00 2001 From: sakno Date: Wed, 4 Dec 2024 17:24:37 +0200 Subject: [PATCH] Code cleanup --- .../Buffers/Binary/SevenBitEncodedInt32Reader.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs index fbd63554f..723de7b9a 100644 --- a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs +++ b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs @@ -1,5 +1,4 @@ -using System.Numerics; -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace DotNext.Buffers.Binary; @@ -7,13 +6,13 @@ namespace DotNext.Buffers.Binary; [StructLayout(LayoutKind.Auto)] internal struct SevenBitEncodedInt32Reader : IBufferReader, ISupplier { - private SevenBitEncodedInteger value; + private SevenBitEncodedInteger decoder; private bool completed; readonly int IBufferReader.RemainingBytes => Unsafe.BitCast(!completed); void IReadOnlySpanConsumer.Invoke(ReadOnlySpan source) - => completed = value.Append(MemoryMarshal.GetReference(source)) is false; + => completed = decoder.Append(MemoryMarshal.GetReference(source)) is false; - readonly int ISupplier.Invoke() => (int)value.Value; + readonly int ISupplier.Invoke() => (int)decoder.Value; } \ No newline at end of file