ΒΆ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:412

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.