MONGOC_TOPOLOG...PTION_NEW_COPY(3)

✨ mongoc_topology_description_new_copy(3) ✨

Okay so this page is from the libmongoc manual, and it's literally the copy-paste glow-up for your topology description πŸ’… No cap.

🌸 SYNOPSIS 🌸

          mongoc_topology_description_t *
          mongoc_topology_description_new_copy (
             const mongoc_topology_description_t *description);

πŸŽ€ PARAMETERS πŸŽ€

  • description β€” a mongoc_topology_description_t. That's the thing you're copying, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

It performs a deep copy of description. Like, a whole full duplicate, no cap πŸ”₯

πŸ’– RETURNS πŸ’–

You get a newly allocated copy of description back, and you should free it with mongoc_topology_description_destroy() when it's no longer in use. If description is NULL, it returns NULL. Periodt πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” iconic.

2009-present, MongoDB, Inc. β€” yup, they've been holding it down.


That's the whole page, bestie 🫢 Source: libmongoc, version 2.5.6, dated Oct 09, 202 β€” slay and stay copied πŸ’…βœ¨

πŸ“¦ where this page comes from