diff --git a/BeefLibs/corlib/src/Span.bf b/BeefLibs/corlib/src/Span.bf index 83e49bc1..c8f24d2d 100644 --- a/BeefLibs/corlib/src/Span.bf +++ b/BeefLibs/corlib/src/Span.bf @@ -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