1MONGOC_GRIDFS_CREATE_FILE(3) libmongoc MONGOC_GRIDFS_CREATE_FILE(3)
2
3
4
6 mongoc_gridfs_file_t *
7 mongoc_gridfs_create_file (mongoc_gridfs_t *gridfs,
8 mongoc_gridfs_file_opt_t *opt)
9 BSON_GNUC_WARN_UNUSED_RESULT;
10
12 • gridfs: A mongoc_gridfs_t.
13
14 • opt: A mongoc_gridfs_file_opt_t to specify file options.
15
17 This function shall create a new mongoc_gridfs_file_t.
18
19 Use mongoc_gridfs_file_writev() to write to the file.
20
22 Returns a newly allocated mongoc_gridfs_file_t that should be freed
23 with mongoc_gridfs_file_destroy().
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.25.1 Nov 08, 2023 MONGOC_GRIDFS_CREATE_FILE(3)