DOKK / manpages / debian 11 / libbson-doc / bson_realloc_ctx.3.en
BSON_REALLOC_CTX(3) libbson BSON_REALLOC_CTX(3)

bson_realloc_ctx - bson_realloc_ctx()

void *
bson_realloc_ctx (void *mem, size_t num_bytes, void *ctx);


  • mem: A memory region.
  • num_bytes: A size_t containing the requested size.
  • ctx: A consumer-specific pointer or NULL.

This function is identical to bson_realloc() except it takes a context parameter. This is useful when working with pooled or specific memory allocators.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6