fix(core): Converts account packets to spanwriter (#381)
- [X] Converts account packets to spanwriter
This commit is contained in:
parent
3b413371dc
commit
ac76c57c39
7 changed files with 157 additions and 117 deletions
|
|
@ -479,22 +479,6 @@ namespace System.Buffers
|
|||
Write((byte)0);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Clear()
|
||||
{
|
||||
if (Position < _first.Length)
|
||||
{
|
||||
_first.Slice(Position).Clear();
|
||||
_second.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
_second.Slice(Position - _first.Length).Clear();
|
||||
}
|
||||
|
||||
Position = Length;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Clear(int amount)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue