Provided by: libbson-doc_2.2.1-1_all 

SYNOPSIS
void
bson_reader_set_destroy_func (bson_reader_t *reader,
bson_reader_destroy_func_t func);
PARAMETERS
• reader: A bson_reader_t <>.
• func: A bson_reader_destroy_func_t <>.
DESCRIPTION
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.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 BSON_READER_SET_DESTROY_FUNC(3)