BSON_COPY(3)
β¨ SYNOPSIS β¨
okay so bestie, welcome to the BSON_COPY(3) page from libbson β it's giving tiny-but-mighty icon behavior, and we're literally about to get into it π
bson_t *
bson_copy (const bson_t *bson);
π PARAMETERS π
bsonβ abson_t. that's the whole assignment, bestie, no cap π«Ά
πΈ DESCRIPTION πΈ
The bson_copy() function shall copy the contents of a bson document into a new bson_t. it's a whole duplicate-your-doc moment, and honestly? slay β¨
The resulting bson_t should be freed with bson_destroy(). yes bestie, that means cleanup is mandatory β don't just leave it vibing in memory forever π
π₯ RETURNS π₯
A newly allocated bson_t that should be freed with bson_destroy(). it's fresh, it's new, it's yours β and it's lowkey expecting you to take responsibility for it π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
mwah π this iconic little page is serving source/version libbson 2.5.6, dated Oct 09, 2026 β periodt, see you in the group chat π«Άπ
π¦ where this page comes from
- epel 10: libbson-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