1BSON_REALLOC_FUNC(3) libbson BSON_REALLOC_FUNC(3)
2
3
4
6 typedef void *(*bson_realloc_func) (void *mem, size_t num_bytes, void *ctx);
7
9 • mem: A memory region.
10
11 • num_bytes: A size_t containing the requested size.
12
13 • ctx: A consumer-specific pointer or NULL.
14
16 This is a prototype for pluggable realloc functions used through the
17 Libbson library. If you wish to use a custom allocator this is one way
18 to do it. Additionally, bson_realloc_ctx() is a default implementation
19 of this prototype.
20
22 MongoDB, Inc
23
25 2017-present, MongoDB, Inc
26
27
28
29
301.25.1 Nov 08, 2023 BSON_REALLOC_FUNC(3)