fix: Improves STArray and SpanWriter with packets (#1736)

This commit is contained in:
Kamron Batman 2024-04-21 20:44:25 -07:00 • committed by GitHub
parent 44df304575
commit 3a27ab8810
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -438,7 +438,7 @@ public ref struct SpanWriter
_ => offset // Begin
});
if (newPosition >= _buffer.Length)
if (newPosition > _buffer.Length)
{
Grow(newPosition - _buffer.Length + 1);
}