NuDB Logo

PrevUpHomeNext

basic_store::block_size

Return the block size associated with the database.

std::size_t
block_size() const;

The block size is defined by the application when the database is created in a call to create or when a key file is regenerated in a call to rekey. The block size cannot be changed on an existing key file. Instead, a new key file may be created with a different block size.

Requirements

The database must be open.

Thread safety

Safe to call concurrently with any function except open or close.

Return Value

The size of blocks in the key file.


PrevUpHomeNext