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

Function tee

src/pipe.rs:191–198  ·  view source on GitHub ↗
(
    fd_in: FdIn,
    fd_out: FdOut,
    len: usize,
    flags: SpliceFlags,
)

Source from the content-addressed store, hash-verified

189#[cfg(linux_kernel)]
190#[inline]
191pub fn tee<FdIn: AsFd, FdOut: AsFd>(
192 fd_in: FdIn,
193 fd_out: FdOut,
194 len: usize,
195 flags: SpliceFlags,
196) -> io::Result<usize> {
197 backend::pipe::syscalls::tee(fd_in.as_fd(), fd_out.as_fd(), len, flags)
198}
199
200/// `fnctl(fd, F_GETPIPE_SZ)`—Return the buffer capacity of a pipe.
201///

Callers 1

test_teeFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 1

test_teeFunction · 0.40