MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / Reverse

Method Reverse

external/as_add_on/scriptarray/scriptarray.cpp:1070–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070void CScriptArray::Reverse()
1071{
1072 asUINT size = GetSize();
1073
1074 if( size >= 2 )
1075 {
1076 asBYTE TEMP[16];
1077
1078 for( asUINT i = 0; i < size / 2; i++ )
1079 {
1080 Copy(TEMP, GetArrayItemPointer(i));
1081 Copy(GetArrayItemPointer(i), GetArrayItemPointer(size - i - 1));
1082 Copy(GetArrayItemPointer(size - i - 1), TEMP);
1083 }
1084 }
1085}
1086
1087bool CScriptArray::operator==(const CScriptArray &other) const
1088{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected