Provided by: libbson-doc_2.2.1-1_all 

SYNOPSIS
void *
bson_realloc_ctx (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 function is identical to bson_realloc() <> except it takes a context parameter. This is useful when
working with pooled or specific memory allocators.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 BSON_REALLOC_CTX(3)