Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 87fa3edb00.
PrevUpHomeNext
basic_random_access_file::resize (1 of 2 overloads)

Inherited from basic_file.

Alter the size of the file.

void resize(
    uint64_t n);

This function resizes the file to the specified size, in bytes. If the current file size exceeds n then any extra data is discarded. If the current size is less than n then the file is extended and filled with zeroes.

Parameters

n

The new size for the file.

Exceptions

boost::system::system_error

Thrown on failure.


PrevUpHomeNext