BSON_OID_COMPARE_UNSAFE(3)

πŸ’… BSON_OID_COMPARE_UNSAFE β€” a libbson moment

okay so bestie, we're in libbson land, and this one is a static inline int situation β€” yes it's giving "small function, big personality." Let's get into it ✨

✨ SYNOPSIS ✨

static inline int
bson_oid_compare_unsafe (const bson_oid_t *oid1, const bson_oid_t *oid2);

two bson_oid_t pointers walk in, an int walks out. that's the whole vibe. πŸŽ€


🌸 DESCRIPTION 🌸

so here's the tea: bson_oid_compare_unsafe() is identical to bson_oid_compare(), except it does no integrity checking. none. zero. not a single vibe check. πŸ’€

like, it's the same function, same behaviour, same everything β€” it just skips the checking part. bson_oid_compare() is the one that checks; this one simply does not. lowkey iconic of it, honestly. no cap, that's literally the entire difference, so don't go expecting anything more from her 🫢

bestie pls note: the manpage says no integrity checking, and that's all it says. it doesn't spell out what the checking is or what happens without it β€” so i'm not gonna invent lore. if you need the checks, go hang out with bson_oid_compare() instead. πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the literal main characters of this whole libbson situation 🧚


2009-present, MongoDB, Inc. β€” periodt, that's the whole copyright line, keep it sacred 🌈


and that's the page, bestie!! short, sweet, and unsafe in the most polite way possible πŸ’œ

sign-off szn: this was BSON_OID_COMPARE_UNSAFE(3) from libbson, version 2.5.6, dated Oct 09, 2026 β€” mwah, go compare some OIDs responsibly (or don't, that's kinda the point) πŸ’…πŸ”₯

πŸ“¦ where this page comes from