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β abson_t. The source doc youβre copying from, aka the main character.dstβ abson_t. The destination doc getting all the copied fields.first_excludeβ the first field name to exclude. Yup, this one gets skipped.argsβ ava_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 callbson_init()ondst. Do not expect it to setdstup for you β that part is not happening on this functionβs watch.
SEE ALSO: bson_copy_to_excluding_noinit()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
xoxo, the libbson manual π β version 2.5.6, dated Oct 09, 20 β¨
π¦ 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