BSON_OID_EQUAL_UNSAFE(3)

✨ BSON_OID_EQUAL_UNSAFE(3) ✨

okay so bestie, welcome to the libbson corner of the manual, where we talk about bson_oid_equal_unsafe β€” yes that name is a whole vibe and yes the "unsafe" is doing a lot of heavy lifting, we'll get there πŸ’…


🌸 SYNOPSIS 🌸

static inline bool
bson_oid_equal_unsafe (const bson_oid_t *oid1, const bson_oid_t *oid2);

like, that's the whole signature. two bson_oid_t * pointers in, one bool out. it's giving simple. it's giving static inline. we love a low-overhead icon ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“ β€” this function is identical to bson_oid_equal(), literally the same behavior, no cap.

the one difference? it performs no integrity checking 😭

that's it. that's the whole thing. no extra validation, no safety net, no vibe check on your inputs. it just goes straight in there and does the comparison. main character energy fr fr.

⚠️ heads up bestie β€” the name literally has "unsafe" in it, so like… know what you're doing before you call it. the manpage says no integrity checking and it means no integrity checking. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icons behind all of this 🫢


2009-present, MongoDB, Inc. β€” a whole era, honestly πŸ’œ


and that's the page!! 🌈 go forth and compare your OIDs, just, y'know, safely-ish ✨

version 2.5.6, dated Oct 09, 2026 β€” mwah, catch you in the next manpage πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from