MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / preadv2

Function preadv2

src/io/read_write.rs:282–289  ·  view source on GitHub ↗
(
    fd: Fd,
    bufs: &mut [IoSliceMut<'_>],
    offset: u64,
    flags: ReadWriteFlags,
)

Source from the content-addressed store, hash-verified

280#[cfg(all(linux_kernel, not(target_os = "android")))]
281#[inline]
282pub fn preadv2<Fd: AsFd>(
283 fd: Fd,
284 bufs: &mut [IoSliceMut<'_>],
285 offset: u64,
286 flags: ReadWriteFlags,
287) -> io::Result<usize> {
288 backend::io::syscalls::preadv2(fd.as_fd(), bufs, offset, flags)
289}
290
291/// `pwritev2(fd, bufs, offset, flags)`—Writes data, with several options.
292///

Callers 3

test_pwritev2Function · 0.50
test_preadv2_nowaitFunction · 0.50
test_p_offsetsFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 3

test_pwritev2Function · 0.40
test_preadv2_nowaitFunction · 0.40
test_p_offsetsFunction · 0.40