ΒΆinline std::error_code
resize_file_before_mapping_readwrite(
    int FD,
    uint64_t Size)

Description

Resize \p FD to \p Size before mapping \a mapped_file_region::readwrite. On non-Windows, this calls \a resize_file(). On Windows, this is a no-op, since the subsequent mapping (via \c CreateFileMapping) automatically extends the file.

Declared at: llvm/include/llvm/Support/FileSystem.h:418

Parameters

int FD
uint64_t Size