Reserve some space in the checkpoints vector
This commit is contained in:
parent
f954013d0b
commit
c7041d6e97
2 changed files with 6 additions and 4 deletions
|
@ -35,7 +35,7 @@ static constexpr SerializeCompressType SAVE_TYPE = SerializeCompressType::ZSTD;
|
|||
|
||||
void PointerWrap::RewindForWrite(u8 *writePtr) {
|
||||
_assert_(mode == MODE_MEASURE);
|
||||
// Switch to writing mode and
|
||||
// Switch to writing mode, save the size for later checking and start again.
|
||||
measuredSize_ = Offset();
|
||||
mode = MODE_WRITE;
|
||||
*ptr = writePtr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue