MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / reverse

Function reverse

include/Array.h:849–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847 }
848
849 void reverse()
850 {
851 int half = length/2;
852 ELEM_ *e = (ELEM_ *)mBase;
853 for(int i=0;i<half;i++)
854 {
855 ELEM_ tmp = e[length-i-1];
856 e[length-i-1] = e[i];
857 e[i] = tmp;
858 }
859 }
860
861 // Will do random pointer sorting for object pointers
862 inline void sortAscending()

Callers 1

Array.hFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected