1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Span.Reverse()

This commit is contained in:
Brian Fiete 2023-08-02 09:47:44 -07:00
parent 891d0839f2
commit b9d5864d61

View file

@ -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