bson_realloc_func(3)

bson_realloc_func3

Usage

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.

Overview

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.