NuDB Logo

PrevUpHomeNext

posix_file::trunc

Truncate the file at a specific size.

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

The file must be open with a mode allowing writes.

Parameters

Name

Description

length

The new file size.

ec

Set to the error, if any occurred.


PrevUpHomeNext