1BSON_SUBTYPE_T(3)                   libbson                  BSON_SUBTYPE_T(3)
2
3
4

NAME

6       bson_subtype_t - bson_subtype_t
7
8       Binary Field Subtype
9

SYNOPSIS

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_COLUMN = 0x07,
22             BSON_SUBTYPE_USER = 0x80,
23          } bson_subtype_t;
24

DESCRIPTION

26       This  enumeration  contains  the various subtypes that may be used in a
27       binary field. See http://bsonspec.org for more information.
28

EXAMPLE

30          bson_t doc = BSON_INITIALIZER;
31
32          BSON_APPEND_BINARY (&doc, "binary", BSON_SUBTYPE_BINARY, data, data_len);
33

AUTHOR

35       MongoDB, Inc
36
38       2017-present, MongoDB, Inc
39
40
41
42
431.21.1                           Mar 02, 2022                BSON_SUBTYPE_T(3)
Impressum