bson_realloc_ctx man page

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

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(3) except it takes a context parameter. This is useful when working with pooled or specific memory allocators.

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

bson_realloc_func(3).

2016‐10‐28 libbson