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 β€” a uint8_t.
  • buflen β€” a size_t.
  • offset β€” a size_t.
  • realloc_func β€” a bson_realloc_func.
  • realloc_func_ctx β€” a bson_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

2009-present, MongoDB, Inc.


xoxo, sourced from libbson 2.5.6, dated Oct 09, 2026 πŸ’–

πŸ“¦ where this page comes from