1BSON_REALLOC_FUNC(3)                libbson               BSON_REALLOC_FUNC(3)
2
3
4

SYNOPSIS

6          typedef void *(*bson_realloc_func) (void *mem, size_t num_bytes, void *ctx);
7

PARAMETERS

9mem: A memory region.
10
11num_bytes: A size_t containing the requested size.
12
13ctx: A consumer-specific pointer or NULL.
14

DESCRIPTION

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

AUTHOR

22       MongoDB, Inc
23
25       2017-present, MongoDB, Inc
26
27
28
29
301.25.1                           Nov 08, 2023             BSON_REALLOC_FUNC(3)
Impressum