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 π§
π COPYRIGHT π
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
- 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