1MONGOC_STREAM_BUFFERED_NEW(3)      libmongoc     MONGOC_STREAM_BUFFERED_NEW(3)
2
3
4

NAME

6       mongoc_stream_buffered_new - mongoc_stream_buffered_new()
7

SYNOPSIS

9          mongoc_stream_t *
10          mongoc_stream_buffered_new (mongoc_stream_t *base_stream,
11                                  size_t buffer_size) BSON_GNUC_WARN_UNUSED_RESULT;
12

PARAMETERS

14base_stream: A mongoc_stream_t to buffer.
15
16buffer_size: A size_t containing the desired buffer size.
17
18       This  function shall create a new mongoc_stream_t that buffers bytes to
19       and from the underlying base_stream.
20
21       buffer_size will be used as the initial buffer size. It may  grow  past
22       this size.
23

RETURNS

25       A  newly allocated mongoc_stream_buffered_t on success, otherwise NULL.
26       This should be freed with mongoc_stream_destroy()  when  no  longer  in
27       use.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.21.1                           Mar 02, 2022    MONGOC_STREAM_BUFFERED_NEW(3)
Impressum