1MONGOC_GRIDFS_FILE_WRITEV(3) libmongoc MONGOC_GRIDFS_FILE_WRITEV(3)
2
3
4
6 mongoc_gridfs_file_writev - mongoc_gridfs_file_writev()
7
9 ssize_t
10 mongoc_gridfs_file_writev (mongoc_gridfs_file_t *file,
11 const mongoc_iovec_t *iov,
12 size_t iovcnt,
13 uint32_t timeout_msec);
14
16 · file: A mongoc_gridfs_file_t.
17
18 · iov: An array of mongoc_iovec_t.
19
20 · iovcnt: The number of elements in iov.
21
22 · timeout_msec: Unused.
23
25 Performs a gathered write to the underlying gridfs file.
26
27 The timeout_msec parameter is unused.
28
29 Modifying GridFS files is NOT thread-safe. Only one thread or process
30 can access a GridFS file while it is being modified.
31
33 Returns the number of bytes written, or -1 on failure. Use mon‐
34 goc_gridfs_file_error to retrieve error details.
35
37 MongoDB, Inc
38
40 2017-present, MongoDB, Inc
41
42
43
44
451.16.2 Feb 25, 2020 MONGOC_GRIDFS_FILE_WRITEV(3)