BSON_COUNT_KEYS(3)
π BSON_COUNT_KEYS(3) π
okay so bestie, welcome to bson_count_keys, part of the libbson crew (manual section 3, if you're keeping track π). she's a tiny little function with one job and honestly? she ate. let's get into it π¦
β¨ SYNOPSIS β¨
uint32_t
bson_count_keys (const bson_t *bson);
that's it. that's the whole vibe. one function, one arg, one uint32_t coming back at you π₯
πΈ PARAMETERS πΈ
bsonβ abson_t. that's the whole description, no cap. hand her abson_tand she's happy π
π« DESCRIPTION π«
so like, bson_count_keys() shall count the number of elements within bson. that's her whole personality and honestly? iconic. she counts the elements. she returns the count. main character energy, zero drama π§ββοΈβ¨
no weird side quests, no "what if bson is NULL" lore in here β the manpage gives you exactly one sentence and I'm not about to invent extra facts for you, iykyk π
π RETURNS π
a positive integer or zero. yep β that's the range. 0 is fully valid, so don't come at her with "but it returned nothing" energy, zero is literally a whole answer ππ
π«Ά AUTHOR π«Ά
MongoDB, Inc β the ones who brought you this whole thing π
π COPYRIGHT π
2009-present, MongoDB, Inc. β all the years, all the rights, periodt π
π one last thing π
this page is from libbson 2.5.6, dated Oct 09, 2026 β so like, screenshot the version number and the date together, mwah, bye bestie, go count some keys ππβ¨
π¦ 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