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

NAME

6       bson_realloc_func - bson_realloc_func
7

SYNOPSIS

9          typedef void *(*bson_realloc_func) (void *mem, size_t num_bytes, void *ctx);
10

PARAMETERS

12mem: A memory region.
13
14num_bytes: A size_t containing the requested size.
15
16ctx: A consumer-specific pointer or NULL.
17

DESCRIPTION

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

AUTHOR

25       MongoDB, Inc
26
28       2017-present, MongoDB, Inc
29
30
31
32
331.17.6                           Jun 03, 2021             BSON_REALLOC_FUNC(3)
Impressum