MONGOC_STREAM_DESTROY(3)
π MONGOC_STREAM_DESTROY(3) π
okay so bestie, welcome to the libmongoc corner of the manual β this one's short and sweet and honestly kind of a baddie: it's the cleanup era for your streams β¨
β¨ SYNOPSIS β¨
void
mongoc_stream_destroy (mongoc_stream_t *stream);
π PARAMETERS π
streamβ amongoc_stream_t. yeah. that's the one. π«Ά
So like, this function shall release all resources associated with a mongoc_stream_t, including freeing the structure β it's giving full send, no leftovers, the whole thing gets yeeted π
β οΈ big warning bestie: it is invalid to use stream after calling this function. like, the pointer is done, it's not coming back, do NOT touch it. that's use-after-free behavior and we are NOT doing that π
and if stream is NULL? it literally does nothing. iconique. no crash, no drama, just vibes πΈ
π AUTHOR π
MongoDB, Inc
π¦ COPYRIGHT π¦
2009-present, MongoDB, Inc.
β¨ that's the whole page, bestie β¨ this little legend comes to you from libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and destroy your streams responsibly πππΊ
π¦ 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