ΒΆstd::error_code resize_file(int FD, uint64_t Size)
std::error_code resize_file(int FD, uint64_t Size)
Description
Resize path to size. File is resized as if by POSIX truncate().
Declared at: llvm/include/llvm/Support/FileSystem.h:432
Parameters
- int FD
- Input file descriptor.
- uint64_t Size
- Size to resize to.
Returns
errc::success if \a path has been resized to \a size, otherwise a platform-specific error_code.