1BSON_VALIDATE(3)                    Libbson                   BSON_VALIDATE(3)
2
3
4

NAME

6       bson_validate - bson_validate()
7

SYNOPSIS

9          bool
10          bson_validate (const bson_t *bson, bson_validate_flags_t flags, size_t *offset);
11

PARAMETERS

13       · bson: A bson_t.
14
15       · flags: A bitwise-or of all desired bson_validate_flags_t.
16
17       · offset:  A  location  for  the  offset  within  bson  where the error
18         occurred.
19

DESCRIPTION

21       Validates a BSON document by walking through the document and  inspect‐
22       ing the keys and values for valid content.
23
24       You  can  modify how the validation occurs through the use of the flags
25       parameter, see bson_validate_with_error() for details.
26

RETURNS

28       Returns true if bson is valid; otherwise false and offset is set to the
29       byte offset where the error was detected.
30

AUTHOR

32       MongoDB, Inc
33
35       2017-present, MongoDB, Inc
36
37
38
39
401.13.1                           Jan 24, 2019                 BSON_VALIDATE(3)
Impressum