BSON_REALLOC_CTX(3)

NAME
bson_realloc_ctx()

SYNOPSIS
void *
bson_realloc_ctx (void  *mem,
                  size_t num_bytes,
                  void  *ctx);

PARAMETERS

.B mem
    A memory region.

.B num_bytes
    A size_t containing the requested size.

.B ctx
    A consumer-specific pointer or NULL .

DESCRIPTION
This function is identical to bson_realloc(3) except it takes a context parameter. This is useful when working with pooled or specific memory allocators.

COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.