1BSON_WRITER_NEW(3) libbson BSON_WRITER_NEW(3)
2
3
4
6 bson_writer_t *
7 bson_writer_new (uint8_t **buf,
8 size_t *buflen,
9 size_t offset,
10 bson_realloc_func realloc_func,
11 void *realloc_func_ctx);
12
14 • buf: A uint8_t.
15
16 • buflen: A size_t.
17
18 • offset: A size_t.
19
20 • realloc_func: A bson_realloc_func.
21
22 • realloc_func_ctx: A bson_realloc_func.
23
25 Creates a new instance of bson_writer_t using the buffer, length, off‐
26 set, and _realloc()_ function supplied.
27
28 The caller is expected to clean up the structure when finished using
29 bson_writer_destroy().
30
32 A newly allocated bson_writer_t.
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.25.1 Nov 08, 2023 BSON_WRITER_NEW(3)