1MONGOC_GRIDFS_FILE_READV(3)        libmongoc       MONGOC_GRIDFS_FILE_READV(3)
2
3
4

NAME

6       mongoc_gridfs_file_readv - mongoc_gridfs_file_readv()
7

SYNOPSIS

9          ssize_t
10          mongoc_gridfs_file_readv (mongoc_gridfs_file_t *file,
11                                    mongoc_iovec_t *iov,
12                                    size_t iovcnt,
13                                    size_t min_bytes,
14                                    uint32_t timeout_msec);
15

PARAMETERS

17       · file: A mongoc_gridfs_file_t.
18
19       · iov: An array of mongoc_iovec_t.
20
21       · iovcnt: The number of elements in iov.
22
23       · min_bytes:  The minimum number of bytes that must be read or an error
24         will be synthesized.
25
26       · timeout_msec: Unused.
27

DESCRIPTION

29       This function performs a scattered read from file, potentially blocking
30       to read from the MongoDB server.
31
32       The timeout_msec parameter is unused.
33

RETURNS

35       Returns  the  number  of  bytes  read,  or  -1  on  failure.  Use  mon‐
36       goc_gridfs_file_error to retrieve error details.
37

AUTHOR

39       MongoDB, Inc
40
42       2017-present, MongoDB, Inc
43
44
45
46
471.16.2                           Feb 25, 2020      MONGOC_GRIDFS_FILE_READV(3)
Impressum