bson_realloc_func (3) - Linux Manuals
bson_realloc_func: 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.
Command to display bson_realloc_func
manual in Linux: $ man 3 bson_realloc_func
NAME
bson_realloc_func - 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.
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(3)
is a default implementation of this prototype.
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_realloc_func
- bson_realloc_ctx (3) - This function is identical to bson_realloc() except it takes a context parameter. This is useful when working with pooled or specific memory allocators.
- bson_realloc (3) - This is a portable realloc() wrapper.
- bson_reader_destroy (3) - Destroys and releases all resources associated with reader.
- bson_reader_destroy_func_t (3) - An optional callback function that will be called when a bson_reader_t created with bson_reader_new_from_handle is destroyed with bson_reader_destroy().
- bson_reader_new_from_data (3) - The bson_reader_new_from_data() function shall create a new bson_reader_t using the buffer supplied. data is not copied and MUST be valid for the lifetime of the resulting bson_reader_t.
- bson_reader_new_from_fd (3) - The bson_reader_new_from_fd() function shall create a new bson_reader_t that will read from the provided file-descriptor.
- bson_reader_new_from_file (3) - Creates a new bson_reader_t using the file denoted by filename.
- bson_reader_new_from_handle (3) - This function allows for a pluggable data stream for the reader. This can be used to read from sockets, files, memory, or other arbitrary sources.
- bson_reader_read (3) - The bson_reader_read() function shall read the next document from the underlying file-descriptor or buffer.
- bson_reader_read_func_t (3) - A callback function that will be called by bson_reader_t to read the next chunk of data from the underlying opaque file descriptor.
- bson_reader_set_destroy_func (3) - Allows for setting a callback to be executed when a reader is destroyed. This should only be used by implementations implementing their own read callbacks.
- bson_reader_set_read_func (3) - Sets the function to read more data from the underlying stream in a custom bson_reader_t.