1BSON_OID_IS_VALID(3) libbson BSON_OID_IS_VALID(3)
23
4
SYNOPSIS
6bool
7bson_oid_is_valid (const char *str, size_t length);
8
PARAMETERS
10• str: A string.
1112
• length: The length of str.
13
DESCRIPTION
15Checks if a string containing a hex encoded string is a valid BSON Ob‐
16jectID.
17
RETURNS
19true if str could be parsed.
20
AUTHOR
22MongoDB, Inc
23
COPYRIGHT
252017-present, MongoDB, Inc
2627
28
29
30
1.25.1 Nov 08, 2023 BSON_OID_IS_VALID(3)