Num Rec app and save & loading
This commit is contained in:
parent
fc20f3594d
commit
b7a89b714e
12 changed files with 8171 additions and 12 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue