logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       MongoDB, Inc

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.

Parameters

mem: A memory region.

       • num_bytes: A size_t containing the requested size.

       • ctx: A consumer-specific pointer or NULL.

Synopsis

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

See Also