bool bson_oid_is_valid (const char *str, size_t length);
str: A string.
str
length: The length of str.
length
Checks if a string containing a hex encoded string is a valid BSON ObjectID.
true if str could be parsed.