DOKK / manpages / debian 12 / libbson-doc / bson_reader_set_destroy_func.3.en
BSON_READER_SET_DESTROY_FUNC(3) libbson BSON_READER_SET_DESTROY_FUNC(3)

bson_reader_set_destroy_func - bson_reader_set_destroy_func()

void
bson_reader_set_destroy_func (bson_reader_t *reader,

bson_reader_destroy_func_t func);


  • reader: A bson_reader_t.
  • func: A bson_reader_destroy_func_t.

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.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1