Like readFull but scatter‐reads into multiple buffers.

Synopsis

Declared in <folly/FileUtil.h>

[[nodiscard]]
ssize_t
readvFull(
    int fd,
    iovec* iov,
    int count);

Return Value

The number of bytes read, or ‐1 on error.

Note

The return value should not be discarded.

Parameters

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.

Created with MrDocs