Like readFull but scatter-reads into multiple buffers.
Declared in <folly/FileUtil.h>
[[nodiscard]]
ssize_t
readvFull(
int fd,
iovec* iov,
int count);
The number of bytes read, or -1 on error.
The return value should not be discarded.
| Name | Description |
|---|---|
| fd | The file descriptor to read from. |
| iov | Array of buffers to fill; contents after return are unspecified. |
| count | Number of entries in iov. |