Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
347
void cMemoryArchive::Truncate()
348
{
349
ASSERT(mReadHead >= 0);
350
351
mLogicalSize = mReadHead;
352
AllocateMemory(mLogicalSize);
353
}
354
355
void cMemoryArchive::MapArchive(int64 offset, int64 len) // throw(eArchive)
356
{
Callers
2
Read
Method · 0.45
TestFileHeader
Function · 0.45
Calls
2
IsOpen
Method · 0.80
GetDescription
Method · 0.80
Tested by
1
TestFileHeader
Function · 0.36