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