1BSON_SUBTYPE_T(3) libbson BSON_SUBTYPE_T(3)
2
3
4
6 bson_subtype_t - bson_subtype_t
7
8 Binary Field Subtype
9
11 #include <bson/bson.h>
12
13
14 typedef enum {
15 BSON_SUBTYPE_BINARY = 0x00,
16 BSON_SUBTYPE_FUNCTION = 0x01,
17 BSON_SUBTYPE_BINARY_DEPRECATED = 0x02,
18 BSON_SUBTYPE_UUID_DEPRECATED = 0x03,
19 BSON_SUBTYPE_UUID = 0x04,
20 BSON_SUBTYPE_MD5 = 0x05,
21 BSON_SUBTYPE_USER = 0x80,
22 } bson_subtype_t;
23
25 This enumeration contains the various subtypes that may be used in a
26 binary field. See http://bsonspec.org for more information.
27
29 bson_t doc = BSON_INITIALIZER;
30
31 BSON_APPEND_BINARY (&doc, "binary", BSON_SUBTYPE_BINARY, data, data_len);
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.17.4 Feb 04, 2021 BSON_SUBTYPE_T(3)