1MONGOC_GRIDFS_FILE_READV(3) libmongoc MONGOC_GRIDFS_FILE_READV(3)
2
3
4
6 ssize_t
7 mongoc_gridfs_file_readv (mongoc_gridfs_file_t *file,
8 mongoc_iovec_t *iov,
9 size_t iovcnt,
10 size_t min_bytes,
11 uint32_t timeout_msec);
12
14 • file: A mongoc_gridfs_file_t.
15
16 • iov: An array of mongoc_iovec_t.
17
18 • iovcnt: The number of elements in iov.
19
20 • min_bytes: The minimum number of bytes that must be read or an error
21 will be synthesized.
22
23 • timeout_msec: Unused.
24
26 This function performs a scattered read from file, potentially blocking
27 to read from the MongoDB server.
28
29 The timeout_msec parameter is unused.
30
32 Returns the number of bytes read, or -1 on failure. Use
33 mongoc_gridfs_file_error() to retrieve error details.
34
36 MongoDB, Inc
37
39 2017-present, MongoDB, Inc
40
41
42
43
441.25.1 Nov 08, 2023 MONGOC_GRIDFS_FILE_READV(3)