1BSON_TYPE_T(3)                      libbson                     BSON_TYPE_T(3)
2
3
4

NAME

6       bson_type_t - bson_type_t
7
8       BSON Type Enumeration
9

SYNOPSIS

11          #include <bson/bson.h>
12
13          typedef enum {
14             BSON_TYPE_EOD = 0x00,
15             BSON_TYPE_DOUBLE = 0x01,
16             BSON_TYPE_UTF8 = 0x02,
17             BSON_TYPE_DOCUMENT = 0x03,
18             BSON_TYPE_ARRAY = 0x04,
19             BSON_TYPE_BINARY = 0x05,
20             BSON_TYPE_UNDEFINED = 0x06,
21             BSON_TYPE_OID = 0x07,
22             BSON_TYPE_BOOL = 0x08,
23             BSON_TYPE_DATE_TIME = 0x09,
24             BSON_TYPE_NULL = 0x0A,
25             BSON_TYPE_REGEX = 0x0B,
26             BSON_TYPE_DBPOINTER = 0x0C,
27             BSON_TYPE_CODE = 0x0D,
28             BSON_TYPE_SYMBOL = 0x0E,
29             BSON_TYPE_CODEWSCOPE = 0x0F,
30             BSON_TYPE_INT32 = 0x10,
31             BSON_TYPE_TIMESTAMP = 0x11,
32             BSON_TYPE_INT64 = 0x12,
33             BSON_TYPE_DECIMAL128 = 0x13,
34             BSON_TYPE_MAXKEY = 0x7F,
35             BSON_TYPE_MINKEY = 0xFF,
36          } bson_type_t;
37

DESCRIPTION

39       The  bson_type_t  enumeration  contains  all of the types from the BSON
40       Specification. It can be used to determine the type of a field at  run‐
41       time.
42

EXAMPLE

44          bson_iter_t iter;
45
46          if (bson_iter_init_find (&iter, doc, "foo") &&
47              (BSON_TYPE_INT32 == bson_iter_type (&iter))) {
48             printf ("'foo' is an int32.\n");
49          }
50

AUTHOR

52       MongoDB, Inc
53
55       2017-present, MongoDB, Inc
56
57
58
59
601.17.4                           Feb 04, 2021                   BSON_TYPE_T(3)
Impressum