1:man_page: bson_realloc_ctx
2
3bson_realloc_ctx()
4==================
5
6Synopsis
7--------
8
9.. code-block:: c
10
11  void *
12  bson_realloc_ctx (void *mem, size_t num_bytes, void *ctx);
13
14Parameters
15----------
16
17* ``mem``: A memory region.
18* ``num_bytes``: A size_t containing the requested size.
19* ``ctx``: A consumer-specific pointer or ``NULL``.
20
21Description
22-----------
23
24This function is identical to :symbol:`bson_realloc()` except it takes a context parameter. This is useful when working with pooled or specific memory allocators.
25
26