BSON_ITER_AS_INT64(3)
π BSON_ITER_AS_INT64 π
okay so bestie, welcome to the libbson corner of the manual-verse β this one's about bson_iter_as_int64 and honestly it's giving "tiny function, very useful, knows exactly what it is" β¨
β¨ SYNOPSIS β¨
int64_t
bson_iter_as_int64 (const bson_iter_t *iter);
π PARAMETERS π
iterβ abson_iter_t. that's it. that's the whole param list. she's low maintenance π«Ά
πΈ DESCRIPTION πΈ
bson_iter_as_int64() shall return the contents of the current element as if it were a BSON_TYPE_INT64 element β like, it just pretends for a sec, but respectfully, and only for the types it actually supports. no cap π
the currently supported casts include:
BSON_TYPE_BOOLBSON_TYPE_DOUBLEBSON_TYPE_INT32BSON_TYPE_INT64
so if your element is any of those four, she'll hand you back an int64. icon behaviour, honestly π
π RETURNS π
a 64-bit signed integer. that's the vibe check result: int64_t, signed, 64 whole bits of it β
π¦ AUTHOR π¦
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's a wrap, bestie π§ this page came to you courtesy of libbson β version 2.5.6, dated Oct 09, 2026. go forth and cast responsibly ππ
π¦ 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