Provided by: libbson-doc_1.30.4-1ubuntu1_all 

SYNOPSIS
void bson_writer_destroy (bson_writer_t *writer);
PARAMETERS
• writer: A bson_writer_t.
DESCRIPTION
Cleanup after writer and release any allocated memory. Does nothing if writer is NULL. Note that the buffer supplied to bson_writer_new() is NOT freed from this method. The caller is responsible for that.
AUTHOR
MongoDB, Inc
COPYRIGHT
2009-present, MongoDB, Inc. 1.30.4 Jun 08, 2025 BSON_WRITER_DESTROY(3)