fix: Improves STArray and SpanWriter with packets (#1736)
This commit is contained in:
parent
44df304575
commit
3a27ab8810
2 changed files with 2 additions and 2 deletions
|
|
@ -438,7 +438,7 @@ public ref struct SpanWriter
|
|||
_ => offset // Begin
|
||||
});
|
||||
|
||||
if (newPosition >= _buffer.Length)
|
||||
if (newPosition > _buffer.Length)
|
||||
{
|
||||
Grow(newPosition - _buffer.Length + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue