From cfca88ca8b596059cd930159fed4040f487d0de7 Mon Sep 17 00:00:00 2001 From: harrison314 Date: Sat, 2 Mar 2024 16:33:48 +0100 Subject: FIx method Write(ReadOnlySpan) in LimitedBuffer --- crypto/src/util/io/LimitedBuffer.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto') diff --git a/crypto/src/util/io/LimitedBuffer.cs b/crypto/src/util/io/LimitedBuffer.cs index 07c9969ad..c99c49c25 100644 --- a/crypto/src/util/io/LimitedBuffer.cs +++ b/crypto/src/util/io/LimitedBuffer.cs @@ -47,6 +47,7 @@ namespace Org.BouncyCastle.Utilities.IO public override void Write(ReadOnlySpan buffer) { buffer.CopyTo(m_buf.AsSpan(m_count)); + m_count += buffer.Length; } #endif -- cgit 1.4.1