Provided by: libbson-doc_2.2.1-1_all 

SYNOPSIS
typedef void *(*bson_realloc_func) (void *mem, size_t num_bytes, void *ctx);
PARAMETERS
• mem: A memory region.
• num_bytes: A size_t containing the requested size.
• ctx: A consumer-specific pointer or NULL.
DESCRIPTION
This is a prototype for pluggable realloc functions used through the Libbson library. If you wish to use
a custom allocator this is one way to do it. Additionally, bson_realloc_ctx() <> is a default
implementation of this prototype.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 BSON_REALLOC_FUNC(3)