1BSON_READER_NEW_FROM_FD(3) libbson BSON_READER_NEW_FROM_FD(3)
2
3
4
6 bson_reader_new_from_fd - bson_reader_new_from_fd()
7
9 bson_reader_t *
10 bson_reader_new_from_fd (int fd, bool close_on_destroy);
11
13 • fd: A valid file-descriptor.
14
15 • close_on_destroy: Whether close() should be called on fd when the
16 reader is destroyed.
17
19 The bson_reader_new_from_fd() function shall create a new bson_reader_t
20 that will read from the provided file-descriptor.
21
22 fd MUST be in blocking mode.
23
24 If close_fd is true, then fd will be closed when the bson_reader_t is
25 destroyed with bson_reader_destroy().
26
28 A newly allocated bson_reader_t that should be freed with
29 bson_reader_destroy().
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.24.3 Aug 17, 2023 BSON_READER_NEW_FROM_FD(3)