NuDB Logo

PrevUpHomeNext

posix_file::trunc

Truncate the file at a specific size.

void
trunc(
    std::uint64_t length,
    error_code& ec);
Requirements

The file must be open with a mode allowing writes.

Parameters

length

The new file size.

ec

Set to the error, if any occurred.


PrevUpHomeNext