mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Span.Reverse()
This commit is contained in:
parent
891d0839f2
commit
b9d5864d61
1 changed files with 10 additions and 0 deletions
|
@ -492,6 +492,16 @@ namespace System
|
|||
return &CurrentRef;
|
||||
}
|
||||
}
|
||||
|
||||
public void Reverse()
|
||||
{
|
||||
for (int i < mLength / 2)
|
||||
{
|
||||
var temp = mPtr[i];
|
||||
mPtr[i] = mPtr[mLength - 1 - i];
|
||||
mPtr[mLength - 1 - i] = temp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if BF_RUNTIME_CHECKS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue