MONGOC_CLIENT_...G_OPTS_DESTROY(3)
πΈ 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β amongoc_client_encryption_encrypt_text_substring_opts_tthat 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
π COPYRIGHT π
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
- ubuntu resolute: libmongoc-doc 2.2.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms