1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 05:13:38 +00:00

1. Fixed bug with ILibSparseArray_Move()

2. Added support for ARMADA370-HF (ARCHID=35)
This commit is contained in:
Bryan Roe
2021-08-05 13:47:56 -07:00
parent 365dfbc298
commit 9dfc4757e4
2 changed files with 36 additions and 13 deletions

View File

@@ -8861,6 +8861,11 @@ void* ILibSparseArray_Remove(ILibSparseArray sarray, int index)
{
return(ILibSparseArray_GetEx(sarray, index, 1));
}
void ILibSparseArray_Move_OnEnumerate(ILibSparseArray sender, int index, void *value, void *user)
{
ILibSparseArray_Add(user, index, value);
}
//! Clones the contents of the given Sparse Array into a new Sparse Array
/*!
\param sarray The Sparse Array to clone
@@ -8868,9 +8873,8 @@ void* ILibSparseArray_Remove(ILibSparseArray sarray, int index)
*/
ILibSparseArray ILibSparseArray_Move(ILibSparseArray sarray)
{
ILibSparseArray_Root *root = (ILibSparseArray_Root*)sarray;
ILibSparseArray_Root *retVal = (ILibSparseArray_Root*)ILibSparseArray_CreateEx(sarray);
memcpy_s(retVal->bucket, root->bucketSize * sizeof(ILibSparseArray_Node), root->bucket, root->bucketSize * sizeof(ILibSparseArray_Node));
ILibSparseArray_Enumerate(sarray, ILibSparseArray_Move_OnEnumerate, retVal);
return retVal;
}
//! Clears the SparseArray, and dispatches an event for each defined index