1BSON_OID_INIT_SEQUENCE(3) libbson BSON_OID_INIT_SEQUENCE(3)
2
3
4
6 bson_oid_init_sequence - bson_oid_init_sequence()
7
9 void
10 bson_oid_init_sequence (bson_oid_t *oid,
11 bson_context_t *context) BSON_GNUC_DEPRECATED;
12
14 · oid: A bson_oid_t.
15
16 · context: An optional bson_context_t.
17
19 Generates a new ObjectID with the next 64-bit sequence number in con‐
20 text. The first 4 bytes contain the current time and the following 8
21 contain the sequence number in big-endian format.
22
23 The bson_oid_t generated by this function is not guaranteed to be glob‐
24 ally unique. Only unique within this context. It is however, guaranteed
25 to be sequential.
26
27 WARNING:
28 DEPRECATED: This function provides no additional value compared to
29 bson_oid_init. It will be removed in libbson 2.0.
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.16.2 Feb 25, 2020 BSON_OID_INIT_SEQUENCE(3)