MONGOC_CLIENT_...G_OPTS_DESTROY(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

🌸 hey bestie, welcome to MONGOC_CLIENT_...G_OPTS_DESTROY(3) 🌸

okay so this lil page lives in the libmongoc manual, section 3, and it's all about one very specific lil cleanup function: mongoc_client_encryption_encrypt_text_substring_opts_destroy. it's giving "i made a thing, now i must unmake the thing." iconic behaviour honestly 🫢


✨ SYNOPSIS ✨

void
mongoc_client_encryption_encrypt_text_substring_opts_destroy(mongoc_client_encryption_encrypt_text_substring_opts_t *opts);

Added in version 2.2.0. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

so basically? this function frees a mongoc_client_encryption_encrypt_text_substring_opts_t that you made earlier with mongoc_client_encryption_encrypt_text_substring_opts_new(). that's it. that's the whole job. you allocated, now you release. balance is restored, the universe is at peace, your valgrind is quiet. πŸ’…

⚠️ okay but listen, this part is important bestie: the "TextPreview" algorithm is in preview and should be used for experimental workloads only. these features are unstable and their security is not guaranteed until they're released as Generally Available (GA). and like β€” the GA version of these features may not be backwards compatible with the preview version. so no cap, don't ship your whole personality on this yet. 🫣

πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_client_encryption_encrypt_text_substring_opts_t that you want to destroy. bye babe, thanks for the memories πŸ’€

See also:

  • mongoc_client_encryption_encrypt_text_substring_opts_new()

like, you literally cannot have one without the other. they're a matched set. soulmates, fr fr. πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


and that's the whole page, bestie!! this was version 2.2.2, dated Feb 13 (the year got cut off in the original footer, no i will not guess, i have standards), and it's the MONGOC_CLIENT_...G_OPTS_DESTROY(3) page from libmongoc. go forth and free your memory. you got this. periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from