Like readvFull but scatter‐reads at a given offset.

Synopsis

Declared in <folly/FileUtil.h>

[[nodiscard]]
ssize_t
preadvFull(
    int fd,
    iovec* iov,
    int count,
    off_t offset);

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.

offset

File offset to read from.

Created with MrDocs