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_USER = 0x80,
22          } bson_subtype_t;
23

DESCRIPTION

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

EXAMPLE

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

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.15.2                           Nov 06, 2019                BSON_SUBTYPE_T(3)
Impressum