MCPcopy 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
575bool 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
585void File::Flush()

Callers 2

RestoreMethod · 0.80
ExtractCurrentFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected