BSON_OID_EQUAL(3)
π BSON_OID_EQUAL(3) π
okay so bestie, welcome to the libbson corner of the manual β yes, that libbson, the C library one, and this page is literally about comparing two little object-ID blobs to see if they're twins. no cap. let's get into it π«Ά
β¨ SYNOPSIS β¨
bool
bson_oid_equal (const bson_oid_t *oid1, const bson_oid_t *oid2);
that's the whole vibe check right there β give it two pointers, get a bool back. iconic signature, honestly. π
π PARAMETERS π
oid1β Abson_oid_t. yeah. that's the whole description. it's abson_oid_t, bestie, what more do you want from me πoid2β Abson_oid_t. also one of those. the other one. the second one. the compare-ee, if you will β¨
πΈ DESCRIPTION πΈ
lowkey the whole job is this: it checks if two bson_oid_t contain the same bytes.
that's it. that's the function. byte-for-byte equality, no glow-ups, no interpretation, no "well they're basically the same" β same bytes or it's not the same. periodt. π
π¦ RETURNS π¦
trueif they are equal β slay, they match, bestie behavior π- otherwise
falseβ not me finding out they're different π
π AUTHOR π
MongoDB, Inc β yeah, that MongoDB. the ones you've heard of. main character energy fr fr β¨
π COPYRIGHT π
2009-present, MongoDB, Inc. β long-running copyright, we love a legacy π
okay so that's the page!! short and sweet, just like this function. and for the cute sign-off: this is libbson version 2.5.6, dated Oct 09, 2026 β so go forth and compare those OIDs, bestie, you got this ππ¦β¨πΈπ«Ά
π¦ 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