BSON_COPY_TO_EXCLUDING_NOINIT_VA(3)

πŸ’… BSON_COPY_TO_EXCLUDING_NOINIT_VA β€” libbson manual page πŸ’…

Okay bestie, this is the libbson page for bson_copy_to_excluding_noinit_va(). It’s giving β€œcopy my fields but skip a few,” and honestly? Iconic. ✨

🌸 SYNOPSIS 🌸

void
bson_copy_to_excluding_noinit_va (const bson_t *src,
                                  bson_t *dst,
                                  const char *first_exclude,
                                  va_list args);

πŸŽ€ PARAMETERS πŸŽ€

  • src β€” a bson_t. The source doc you’re copying from, aka the main character.
  • dst β€” a bson_t. The destination doc getting all the copied fields.
  • first_exclude β€” the first field name to exclude. Yup, this one gets skipped.
  • args β€” a va_list. The rest of the excluded field names come through here, iykyk.

πŸ’– DESCRIPTION πŸ’–

The bson_copy_to_excluding_noinit_va() function shall copy all fields from src to dst except those specified by first_exclude and args. Literally all the fields, except the ones you name to leave out. Slay. πŸ’…

Does not call bson_init() on dst.

🫢 Heads up, bestie: no init energy here. It does not call bson_init() on dst. Do not expect it to set dst up for you β€” that part is not happening on this function’s watch.

SEE ALSO: bson_copy_to_excluding_noinit()

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


xoxo, the libbson manual πŸ’– β€” version 2.5.6, dated Oct 09, 20 ✨

πŸ“¦ where this page comes from