diff --git a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs index 723de7b9a..cf51f294b 100644 --- a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs +++ b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs @@ -7,12 +7,12 @@ namespace DotNext.Buffers.Binary; internal struct SevenBitEncodedInt32Reader : IBufferReader, ISupplier { private SevenBitEncodedInteger decoder; - private bool completed; + private bool incompleted; - readonly int IBufferReader.RemainingBytes => Unsafe.BitCast(!completed); + readonly int IBufferReader.RemainingBytes => Unsafe.BitCast(incompleted); void IReadOnlySpanConsumer.Invoke(ReadOnlySpan source) - => completed = decoder.Append(MemoryMarshal.GetReference(source)) is false; + => incompleted = decoder.Append(MemoryMarshal.GetReference(source)); readonly int ISupplier.Invoke() => (int)decoder.Value; } \ No newline at end of file