1BSON_ITER_CODEWSCOPE(3)             Libbson            BSON_ITER_CODEWSCOPE(3)
2
3
4

NAME

6       bson_iter_codewscope - bson_iter_codewscope()
7

SYNOPSIS

9          #define BSON_ITER_HOLDS_CODEWSCOPE(iter) \
10             (bson_iter_type ((iter)) == BSON_TYPE_CODEWSCOPE)
11
12          const char *
13          bson_iter_codewscope (const bson_iter_t *iter,
14                                uint32_t *length,
15                                uint32_t *scope_len,
16                                const uint8_t **scope);
17

PARAMETERS

19       · iter: A bson_iter_t.
20
21       · length:  An  optional  location for the length of the resulting UTF-8
22         encoded string.
23
24       · scope_len: A optional location for the length of scope.
25
26       · scope: An optional location to store the  immutable  raw  scope  BSON
27         document.
28

DESCRIPTION

30       The  bson_iter_codewscope()  function  acts similar to bson_iter_code()
31       except for  BSON_TYPE_CODEWSCOPE  elements.  It  also  will  provide  a
32       pointer  to  the  buffer  for  scope, which can be loaded into a bson_t
33       using bson_init_static().
34

RETURNS

36       An UTF-8 encoded string containing the JavaScript code which should not
37       be modified or freed.
38

AUTHOR

40       MongoDB, Inc
41
43       2017-present, MongoDB, Inc
44
45
46
47
481.14.0                           Feb 22, 2019          BSON_ITER_CODEWSCOPE(3)
Impressum