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.
Declared in <flatfile.h>
size_t
Allocate(
FlatFilePos const& pos,
size_t add_size,
bool& out_of_space) const;
The number of bytes successfully allocated.
| 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. |