Db::stat
#include <db_cxx.h> extern "C" { typedef void *(*db_malloc_fcn_type)(size_t); }; int Db::stat(void *sp, db_malloc_fcn_type db_malloc, u_int32_t flags);
Description
The Db::stat method creates a statistical structure and copies a pointer to it into user-specified memory locations. Specifically, if sp is non-NULL, a pointer to the statistics for the database are copied into the memory location it references.
Statistical structures are created in allocated memory. If db_malloc is non-NULL, it is called to allocate the memory; otherwise, the library function malloc(3) is used. The function db_malloc must match the calling conventions of the malloc(3) library routine. Regardless, the caller is responsible for deallocating the returned ...
Get Berkeley DB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.