1BSON_ITER_TIMESTAMP(3) libbson BSON_ITER_TIMESTAMP(3)
2
3
4
6 #define BSON_ITER_HOLDS_TIMESTAMP(iter) \
7 (bson_iter_type ((iter)) == BSON_TYPE_TIMESTAMP)
8
9 void
10 bson_iter_timestamp (const bson_iter_t *iter,
11 uint32_t *timestamp,
12 uint32_t *increment);
13
15 • iter: A bson_iter_t.
16
17 • timestamp: A uint32_t.
18
19 • increment: A uint32_t.
20
22 The BSON_TYPE_TIMESTAMP type is not a date/time and is typically used
23 for intra-server communication.
24
25 You probably want bson_iter_date_time().
26
27 The bson_iter_timestamp() function shall return the contents of a
28 BSON_TYPE_TIMESTAMP element. It is invalid to call this function while
29 observing an element that is not of type BSON_TYPE_TIMESTAMP.
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.25.1 Nov 08, 2023 BSON_ITER_TIMESTAMP(3)