MONGOC_CLIENT...X_OPTS_DESTROY(3)
π MONGOC_CLIENT...X_OPTS_DESTROY(3) π
okay bestie, welcome to the libmongoc corner of the manual, where we learn how to clean up after ourselves like the responsible main characters we are β¨
This page is all about mongoc_client_encryption_encrypt_text_prefix_opts_destroy β yes the name is a whole paragraph, no I did not make it up, and yes it is iconic in its own chaotic way π
πΈ SYNOPSIS πΈ
void
mongoc_client_encryption_encrypt_text_prefix_opts_destroy(mongoc_client_encryption_encrypt_text_prefix_opts_t *opts);
Added in version 2.2.0. π¦
So here's the tea: this function frees a mongoc_client_encryption_encrypt_text_prefix_opts_t that you made earlier with mongoc_client_encryption_encrypt_text_prefix_opts_new(). You built it, you destroy it. Balance. Periodt. π
β οΈ REAL TALK TIME: 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 released as Generally Available (GA). The GA version of these features may not be backwards compatible with the preview version. So likeβ¦ play with it, don't build your whole life on it, iykyk π
π§ PARAMETERS π§
optsβ Amongoc_client_encryption_encrypt_text_prefix_opts_tto destroy. That's it, that's the whole vibe check. Give it the thing, it goes bye-bye ππ«Ά
See also:
mongoc_client_encryption_encrypt_text_prefix_opts_new()
π AUTHOR π
MongoDB, Inc β the literal icons who wrote all this π
β COPYRIGHT β
2009-present, MongoDB, Inc.
okay that's the whole page, you ate that reading session fr fr πβ¨ this was libmongoc, version 2.2.2, dated Feb 13, 2026 β love u, go free your opts, and remember: every _new() deserves a _destroy() ππ
π¦ 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