Exhumed: do raw serialization of FreeListArray.

This is for robustness reasons, there were occurences where this did not properly restore everything as intended.
This commit is contained in:
Christoph Oelckers 2023-11-12 12:04:08 +01:00
parent c62418006c
commit 6984b7d6db

View file

@ -76,6 +76,12 @@ public:
{
if (arc.BeginObject(key))
{
arc("freecount", freecount)
.Array("freelist", FreeList, size)
.Array("data", DataList, size);
/*
FixedBitArray<size> check;
if (arc.isWriting())
@ -95,6 +101,7 @@ public:
if (!check[i]) FreeList[freecount++] = i;
}
}
*/
arc.EndObject();
}
}