BSON_ITER_SYMBOL(3)
π BSON_ITER_SYMBOL(3) π
okay so bestie, welcome to the libbson corner of the universe β this one's a lil vintage, a lil deprecated, but still iconic in its own way. let's get into it π
β¨ SYNOPSIS β¨
const char *
bson_iter_symbol (const bson_iter_t *iter, uint32_t *length);
πΈ PARAMETERS πΈ
iterβ abson_iter_t. literally the iterator you're poking at, no cap π«Άlengthβ auint32_t. it's the pointer where the length info goes, we'll get to that π
π¦ DESCRIPTION π¦
okay first things first, and I need you to hear me on this one: the symbol element type is DEPRECATED in the bson specification over at http://bsonspec.org. like, it's giving legacy. it's giving "we don't really do this anymore." so keep that in mind before you go building your whole personality around it π
that said β the bson_iter_symbol() function shall return the contents of a BSON_TYPE_SYMBOL element. that's the whole job. it just hands you the symbol, periodt β¨
and if length is non-NULL, then length will be set to the length of the resulting string. if it's NULL, nothing happens, no drama, we simply don't touch it π
π RETURNS π
the symbol is returned, and length is set. that's it, that's the vibe check β
lowkey important reminder: length only gets set if it's non-NULL. don't come for me if you passed NULL and got nothing back π
π AUTHOR π
MongoDB, Inc β the masterminds behind all this π«‘
π COPYRIGHT π
2009-present, MongoDB, Inc. β protect it, respect it π
and that's the whole page, bestie!! libbson 2.5.6, Oct 09, 2026 β screenshot it, cite it, slay it π β¨π
π¦ 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