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

Function pwrite

src/io/read_write.rs:136–138  ·  view source on GitHub ↗
(fd: Fd, buf: &[u8], offset: u64)

Source from the content-addressed store, hash-verified

134#[cfg(not(windows))]
135#[inline]
136pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> {
137 backend::io::syscalls::pwrite(fd.as_fd(), buf, offset)
138}
139
140/// `readv(fd, bufs)`—Reads from a stream into multiple buffers.
141///

Callers 4

test_readwrite_pFunction · 0.50
test_readwrite_p_uninitFunction · 0.50
test_p_offsetsFunction · 0.50
invalid_offset_pwriteFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 4

test_readwrite_pFunction · 0.40
test_readwrite_p_uninitFunction · 0.40
test_p_offsetsFunction · 0.40
invalid_offset_pwriteFunction · 0.40