bson_oid_init_from_data (3) - Linux Manuals
bson_oid_init_from_data: Initializes a bson_oid_t using the raw buffer provided.
Command to display bson_oid_init_from_data
manual in Linux: $ man 3 bson_oid_init_from_data
NAME
bson_oid_init_from_data() - Initializes a bson_oid_t using the raw buffer provided.
SYNOPSIS
void
bson_oid_init_from_data (bson_oid_t *oid,
const uint8_t *data);
PARAMETERS
- oid
-
A
bson_oid_t
\&.
- data
-
A buffer containing 12 bytes for the oid.
DESCRIPTION
Initializes a
bson_oid_t
using the raw buffer provided.
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_data
- bson_oid_init_from_string (3) - Parses the string containing hex encoded oid and initialize the bytes in oid.
- 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.