bool
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 BSON_OID_IS_VALID(3)
Description
Checks if a string containing a hex encoded string is a valid BSON ObjectID.
Parameters
• str: A string.
• length: The length of str.
Returns
true if str could be parsed.
Synopsis
bool
bson_oid_is_valid (const char *str, size_t length);
