BSON_ITER_FIND(3)
π BSON_ITER_FIND(3) π
okay so this is the libbson manual page for bson_iter_find(), and bestie, itβs lowkey iconic for finding exactly one key in your BSON iterator. no cap. π¦
β¨ SYNOPSIS β¨
bool
bson_iter_find (bson_iter_t *iter, const char *key);
π PARAMETERS π
iterβ Abson_iter_t. the main character iterator weβre moving around π«keyβ A string containing the requested key. the name youβre hunting for π
πΈ DESCRIPTION πΈ
The bson_iter_find() function shall advance iter to the first element named key or exhaust all elements of iter. itβs giving βgo find your fave and donβt come back until you doβ π
If iter is exhausted, false is returned and iter should be considered invalid. like, fr fr, that iterator is done-zo after that π
Heads up, bestie: key is case-sensitive. For a case-folded version, see bson_iter_find_case(). iykyk π«Ά
β RETURNS β
true is returned if the requested key was found. slay. π
If not, iter was exhausted and should now be considered invalid. not me getting emotionally attached to an iterator thatβs literally invalid now π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
mwah π this cutie is from libbson 2.5.6, dated Oct 09, 2026 β catch you in the next manpage, bestie ππ«Ά
π¦ 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