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 β€” A bson_oid_t. yeah. that's the whole description. it's a bson_oid_t, bestie, what more do you want from me 😭
  • oid2 β€” A bson_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 πŸ¦‹

  • true if 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 ✨


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