BSON_WRITER_NEW(3)
π¦ bson_writer_new β a libbson moment (BSON_WRITER_NEW(3)) π¦
okay bestie, this is the BSON_WRITER_NEW(3) page from libbson, and it's giving βtiny function, very important buffer energyβ β¨
SYNOPSIS πΈ
bson_writer_t *
bson_writer_new (uint8_t **buf,
size_t *buflen,
size_t offset,
bson_realloc_func realloc_func,
void *realloc_func_ctx);
PARAMETERS π
bufβ auint8_t.buflenβ asize_t.offsetβ asize_t.realloc_funcβ abson_realloc_func.realloc_func_ctxβ abson_realloc_func. yep, that's literally what the page says β no notes π
DESCRIPTION π
Creates a new instance of bson_writer_t using the buffer, length, offset, and the realloc() function supplied. lowkey iconic β¨
The caller is expected to clean up the structure when finished using bson_writer_destroy(). don't leave your writer hanging, bestie π«Ά
RETURNS π
A newly allocated bson_writer_t. slay π
AUTHOR π
MongoDB, Inc
COPYRIGHT π
2009-present, MongoDB, Inc.
xoxo, sourced from libbson 2.5.6, dated Oct 09, 2026 π
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms