BSON_STRING_APPEND(3)
π BSON_STRING_APPEND(3) β the libbson one, bestie
okay so real talk before we even start, because I love you and I need you to know what you're walking into π
β οΈ WARNING: Deprecated since version 1.29.0. She's retired, babes. Still documented, still real, but the maintainers have moved on and so should you. π
β¨ SYNOPSIS β¨
void
bson_string_append (bson_string_t *string, const char *str);
likeβ¦ that's it. void return, two args, no drama. π
π«Ά PARAMETERS π«Ά
stringβ abson_string_t. the main character, the one getting stuff added to her. πstrβ a string. the guest star, the one doing the adding. β¨
πΈ DESCRIPTION πΈ
So what she does is: she takes str β which can be ASCII or UTF-8 encoded, either one is fine, we don't discriminate here β and she appends it onto string. Glued right on the end. Slay. π¦
BUT. And this is the important part, no cap:
π¨ She is NOT suitable for embeddingNULLs in strings. Like, if you're trying to sneak aNULLin there, that's not her thing, that's not what she does, please don't. π
And ANOTHER thing, because the universe loves a caveat:
β οΈ WARNING: The length of the resulting string β and yes, including theNULLterminator, we count that too, bestie β MUST NOT exceedUINT32_MAX. Not "shouldn't". MUST NOT. That's a hard limit, that's a boundary, and we respect boundaries in this house. π
π AUTHOR π
MongoDB, Inc β the icons, the legends, the ones who wrote this whole thing. π«Ά
π COPYRIGHT π
2009-present, MongoDB, Inc. β yes that's the whole range, they've been at this a minute, we love longevity. β¨
and that's the page!! π sign-off time: this was brought to you by libbson, version 1.30.13, dated Oct 09, 2026 β so you know she's fresh, you know she's current, and yeah, the deprecated girlies still get their documentation. respect. ππ periodt.
π¦ where this page comes from
- fedora 43: libbson-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: libbson-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms