1MONGOC_STREAM_BUFFERED_NEW(3) libmongoc MONGOC_STREAM_BUFFERED_NEW(3)
2
3
4
6 mongoc_stream_buffered_new - mongoc_stream_buffered_new()
7
9 mongoc_stream_t *
10 mongoc_stream_buffered_new (mongoc_stream_t *base_stream, size_t buffer_size);
11
13 • base_stream: A mongoc_stream_t to buffer.
14
15 • buffer_size: A size_t containing the desired buffer size.
16
17 This function shall create a new mongoc_stream_t that buffers bytes to
18 and from the underlying base_stream.
19
20 buffer_size will be used as the initial buffer size. It may grow past
21 this size.
22
24 A newly allocated mongoc_stream_buffered_t on success, otherwise NULL.
25 This should be freed with mongoc_stream_destroy() when no longer in
26 use.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.17.6 Jun 03, 2021 MONGOC_STREAM_BUFFERED_NEW(3)