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