mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 01:58:00 +02:00
Added append ctor taking Span<T>
This commit is contained in:
parent
ca83467e1b
commit
2c439092c3
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ namespace System.Collections
|
||||||
Add(item);
|
Add(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AllowAppend]
|
||||||
|
public this(Span<T> span) : this(span.Length)
|
||||||
|
{
|
||||||
|
AddRange(span);
|
||||||
|
}
|
||||||
|
|
||||||
[AllowAppend]
|
[AllowAppend]
|
||||||
public this(int capacity)
|
public this(int capacity)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue