mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Minor lib changes
This commit is contained in:
parent
9d125eaaf2
commit
891e4fd789
4 changed files with 58 additions and 0 deletions
|
@ -295,6 +295,12 @@ namespace System
|
|||
return Span<uint8>((uint8*)mPtr, mLength * sizeof(T));
|
||||
}
|
||||
|
||||
public void Sort(Comparison<T> comp)
|
||||
{
|
||||
var sorter = Sorter<T, void>(Ptr, null, Length, comp);
|
||||
sorter.[Friend]Sort(0, Length);
|
||||
}
|
||||
|
||||
public Enumerator GetEnumerator()
|
||||
{
|
||||
return Enumerator(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue