This commit is contained in:
vis2k 2022-09-27 11:55:51 +07:00
parent 136b8d9956
commit 6988853ee2

View File

@ -56,6 +56,7 @@ internal void EnsureCapacity(int value)
} }
/// <summary>Copies buffer until 'Position' to a new array.</summary> /// <summary>Copies buffer until 'Position' to a new array.</summary>
// Try to use ToArraySegment instead to avoid allocations!
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public byte[] ToArray() public byte[] ToArray()
{ {