bson_oid_init_from_string (3) - Linux Manuals
bson_oid_init_from_string: Parses the string containing hex encoded oid and initialize the bytes in oid.
Command to display bson_oid_init_from_string
manual in Linux: $ man 3 bson_oid_init_from_string
NAME
bson_oid_init_from_string() - Parses the string containing hex encoded oid and initialize the bytes in oid.
SYNOPSIS
void
bson_oid_init_from_string (bson_oid_t *oid,
const char *str);
PARAMETERS
- oid
-
A
bson_oid_t
\&.
- str
-
A string containing a hex encoded version of the oid.
DESCRIPTION
Parses the string containing hex encoded oid and initialize the bytes in
oid
\&.
EXAMPLE
bson_oid_init_from_string (&oid, "012345678901234567890123");
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_oid_init_from_string
- bson_oid_init_from_data (3) - Initializes a bson_oid_t using the raw buffer provided.
- bson_oid_init_sequence (3) - Generates a new ObjectID using the 64-bit sequence.
- bson_oid_init (3) - Generates a new bson_oid_t using either context or the default bson_context_t.
- bson_oid_is_valid (3) - Checks if a string containing a hex encoded string is a valid BSON ObjectID.
- bson_oid_compare (3) - The bson_oid_compare() function shall return a qsort() style value of a lexicographical sort of _oid1_ and _oid2_.
- bson_oid_copy (3) - Copies the contents of src into dst.
- bson_oid_equal (3) - Checks if two bson_oid_t contain the same bytes.
- bson_oid_get_time_t (3) - Fetches the generation time in seconds since the UNIX Epoch of oid.
- bson_oid_hash (3) - Generates a hash code for oid suitable for a hashtable.
- bson_oid_t (3) - BSON ObjectID Abstraction
- bson_oid_to_string (3) - Converts oid into a hex encoded string.
- bson_append_array (3) - The bson_append_array() function shall append child to bson using the specified key. The type of the field will be an array, but it is the responsibility of the caller to ensure that the keys of child are properly formatted with string keys such as "0", "1", "2" and so forth.