Allocate additional space in a file after the given starting position. The amount allocated will be the minimum multiple of the sequence chunk size greater than add_size.

Synopsis

Declared in <flatfile.h>

size_t
Allocate(
    FlatFilePos const& pos,
    size_t add_size,
    bool& out_of_space) const;

Return Value

The number of bytes successfully allocated.

Parameters

Name

Description

pos [in]

The starting position that bytes will be allocated after.

add_size [in]

The minimum number of bytes to be allocated.

out_of_space [out]

Whether the allocation failed due to insufficient disk space.

Created with MrDocs