table of contents
other versions
- bookworm 1.23.1-1+deb12u1
- testing 1.30.4-1
- unstable 1.30.4-1
- experimental 2.0.2-1
BSON_REALLOC_FUNC(3) | libbson | BSON_REALLOC_FUNC(3) |
SYNOPSIS¶
typedef void *(*bson_realloc_func) (void *mem, size_t num_bytes, void *ctx);
PARAMETERS¶
- mem: A memory region.
- num_bytes: A size_t containing the requested size.
- ctx: A consumer-specific pointer or NULL.
DESCRIPTION¶
This is a prototype for pluggable realloc functions used through the Libbson library. If you wish to use a custom allocator this is one way to do it. Additionally, bson_realloc_ctx() is a default implementation of this prototype.
AUTHOR¶
MongoDB, Inc
COPYRIGHT¶
2009-present, MongoDB, Inc.
May 7, 2025 | 1.30.4 |