MONGOC_READ_PREFS_COPY(3)
π MONGOC_READ_PREFS_COPY(3) π
okay so bestie, welcome to libmongoc section 3 β this is the mongoc_read_prefs_copy() girlie and she is lowkey a whole vibe. she clones read preferences. that's it. that's the job. and she does it flawlessly. β¨
πΈ SYNOPSIS πΈ
mongoc_read_prefs_t *
mongoc_read_prefs_copy (const mongoc_read_prefs_t *read_prefs);
like, you hand her a read prefs pointer and she hands you back a brand new one. iconic behavior honestly. π«Ά
π PARAMETERS π
read_prefsβ amongoc_read_prefs_t. that's the thing you're copying, no cap. it's the main character of this whole operation. π
π¦ DESCRIPTION π¦
okay so this function shall deep copy a read preference. deep. not shallow. not "ehh close enough." a full-on deep copy β like when your bestie borrows your playlist but makes her own separate one so nothing you do affects hers. that's the energy. π
literally the entire function. that's the whole description. she copies. she slays. periodt. π
β RETURNS β
she returns a newly allocated read preference β fresh out the oven, your very own copy. π
β οΈ bestie listen to me: you HAVE to free it with mongoc_read_prefs_destroy() when you're done. it's newly allocated, meaning somebody's gotta clean it up and that somebody is you. don't just leave it hanging, that's not the vibe. π
π AUTHOR π
MongoDB, Inc β the legends themselves. π
π COPYRIGHT π
2009-present, MongoDB, Inc. all rights reserved, all vibes reserved. π§
and that's the whole page bestie!! this lil' beauty shipped as part of libmongoc 2.5.6, dated Oct 09, 2026 β so go forth, deep copy your read prefs, free them properly, and remember: deep copy is the only copy. mwah πβ¨π
π¦ where this page comes from
- epel 10: mongo-c-driver-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