BSON_ITER_INT64(3)
BSON_ITER_INT64(3) π β¨
okay bestie, this one is from libbson, and itβs lowkey iconic: itβs the little manual page for pulling a 64-bit integer out of a BSON iterator. π«Ά
SYNOPSIS πΈ
#define BSON_ITER_HOLDS_INT64(iter) (bson_iter_type ((iter)) == BSON_TYPE_INT64)
int64_t
bson_iter_int64 (const bson_iter_t *iter);
So the macro BSON_ITER_HOLDS_INT64(iter) checks whether bson_iter_type ((iter)) is exactly BSON_TYPE_INT64, and bson_iter_int64() is the function that actually fetches the value. slay. π
PARAMETERS π
iterβ abson_iter_t. thatβs the iterator bestie, itβs giving βpoint me at the BSON thing.β β¨
DESCRIPTION π¦
This function fetches the value from a field of type BSON_TYPE_INT64. simple, cute, does what it says on the tin.
bestie, you should verify that this is a BSON_TYPE_INT64 field before calling this function. like, do the vibe check first. no cap. π
RETURNS π
A 64-bit integer. thatβs it, thatβs the tea. π
AUTHOR π
MongoDB, Inc
COPYRIGHT β
2009-present, MongoDB, Inc.
xoxo, your libbson bestie π this page is from version 2.5.6, dated Oct 09, 2026, and it ate. periodt. π
π¦ 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