mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +02:00
Enhanced ranges
This commit is contained in:
parent
eec2cb5e6c
commit
27fd5552cc
12 changed files with 365 additions and 22 deletions
|
@ -260,6 +260,17 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public Span<T> this[IndexRange range]
|
||||
{
|
||||
#if !DEBUG
|
||||
[Inline]
|
||||
#endif
|
||||
get
|
||||
{
|
||||
return Span<T>(&mFirstElement, mLength)[range];
|
||||
}
|
||||
}
|
||||
|
||||
[Inline]
|
||||
public T* CArray()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue