Reads into multiple buffers from a file at a given offset.

Synopsis

Declared in <folly/portability/SysUio.h>

ssize_t
preadv(
    int fd,
    iovec const* iov,
    int count,
    off_t offset);

Return Value

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

Parameters

Name

Description

fd

The open file descriptor.

iov

The array of buffers to fill.

count

The number of entries in iov.

offset

The absolute file offset to read from.

Created with MrDocs