Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abbeycode/UnrarKit
/ Truncate
Method
Truncate
Libraries/unrar/file.cpp:575–582 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
573
574
575
bool File::Truncate()
576
{
577
#ifdef _WIN_ALL
578
return SetEndOfFile(hFile)==TRUE;
579
#else
580
return ftruncate(GetFD(),(off_t)Tell())==0;
581
#endif
582
}
583
584
585
void File::Flush()
Callers
2
Restore
Method · 0.80
ExtractCurrentFile
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected