MCPcopy Create free account
hub / github.com/catboost/catboost / ResizeAndReset

Method ResizeAndReset

util/system/filemap.cpp:398–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void TMemoryMap::ResizeAndReset(i64 size) {
399 EOpenMode om = Impl_->GetMode();
400 TFile file = GetFile();
401 file.Resize(size);
402 Impl_.Reset(new TImpl(file, om, Impl_->GetDbgName()));
403}
404
405TMemoryMap::TMapResult TMemoryMap::ResizeAndRemap(i64 offset, size_t size) {
406 ResizeAndReset(offset + (i64)size);

Callers

nothing calls this directly

Calls 5

GetFileFunction · 0.85
GetDbgNameMethod · 0.80
GetModeMethod · 0.45
ResizeMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected