Num Rec app and save & loading

This commit is contained in:
IlyaShurupov 2023-10-26 16:27:43 +03:00 committed by Ilya Shurupov
parent ee8027055e
commit fa72355799
12 changed files with 8171 additions and 12 deletions

View file

@ -414,7 +414,7 @@ namespace tp {
void archiveWrite(tArchiver& ar) const {
ar << mLoad;
for (auto item : *this) {
ar << item.data();
ar % item.data();
}
}
@ -428,7 +428,8 @@ namespace tp {
if (mLoad == mSize) {
resizeBuffer(tResizePolicy(mSize));
}
ar >> mBuff[mLoad];
new (mBuff + mLoad) tType();
ar % mBuff[mLoad];
mLoad++;
}
}