MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / Truncate

Method Truncate

src/core/archive.cpp:347–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void cMemoryArchive::Truncate()
348{
349 ASSERT(mReadHead >= 0);
350
351 mLogicalSize = mReadHead;
352 AllocateMemory(mLogicalSize);
353}
354
355void cMemoryArchive::MapArchive(int64 offset, int64 len) // throw(eArchive)
356{

Callers 2

ReadMethod · 0.45
TestFileHeaderFunction · 0.45

Calls 2

IsOpenMethod · 0.80
GetDescriptionMethod · 0.80

Tested by 1

TestFileHeaderFunction · 0.36