Home
last modified time | relevance | path

Searched refs:IoSlice (Results 1 - 15 of 15) sorted by relevance

/third_party/rust/crates/rustix/tests/io/
H A Dread_write.rs2 use std::io::{IoSlice, IoSliceMut};
25 pwritev(&foo, &[IoSlice::new(b"hello")], 200).unwrap(); in test_readwrite_pv()
30 match pwritev(&foo, &[IoSlice::new(b"hello")], 200) { in test_readwrite_pv()
36 pwritev(&foo, &[IoSlice::new(b"world")], 300).unwrap(); in test_readwrite_pv()
85 writev(&foo, &[IoSlice::new(b"hello")]).unwrap(); in test_readwrite_v()
86 writev(&foo, &[IoSlice::new(b"world")]).unwrap(); in test_readwrite_v()
166 writev(&foo, &[IoSlice::new(b"hello")]).unwrap(); in test_pwritev2()
170 match pwritev2(&foo, &[IoSlice::new(b"world")], 0, ReadWriteFlags::APPEND) { in test_pwritev2()
179 pwritev2(&foo, &[IoSlice::new(b"world")], !0, ReadWriteFlags::APPEND).unwrap(); in test_pwritev2()
/third_party/rust/crates/nix/test/sys/
H A Dtest_socket.rs80 use std::io::{IoSlice, IoSliceMut}; in test_timestamping()
106 let iov1 = [IoSlice::new(&sbuf)]; in test_timestamping()
400 use std::io::IoSlice;
441 let iov = [IoSlice::new(m)]; in gso()
493 use std::io::IoSlice; in udp_sendmmsg()
524 let iov = IoSlice::new(m); in udp_sendmmsg()
776 use std::io::{IoSlice, IoSliceMut}; in test_scm_rights()
789 let iov = [IoSlice::new(b"hello")]; in test_scm_rights()
850 use std::io::IoSlice; in test_af_alg_cipher()
889 let iov = IoSlice in test_af_alg_cipher()
[all...]
H A Dtest_uio.rs6 use std::io::IoSlice;
40 iovecs.push(IoSlice::new(b)); in test_writev()
154 IoSlice::new(&to_write[0..17]), in test_pwritev()
155 IoSlice::new(&to_write[17..64]), in test_pwritev()
156 IoSlice::new(&to_write[64..128]), in test_pwritev()
H A Dtest_aio.rs434 use std::io::IoSlice;
442 let wbufs = [IoSlice::new(&wbuf0), IoSlice::new(&wbuf1)]; in test_accessors()
470 let wbufs = [IoSlice::new(wbuf0), IoSlice::new(wbuf1)]; in ok()
/third_party/rust/crates/nix/src/sys/
H A Duio.rs6 use std::io::{IoSlice, IoSliceMut};
13 pub fn writev(fd: RawFd, iov: &[IoSlice<'_>]) -> Result<usize> { in writev()
14 // SAFETY: to quote the documentation for `IoSlice`: in writev()
16 // [IoSlice] is semantically a wrapper around a &[u8], but is in writev()
48 pub fn pwritev(fd: RawFd, iov: &[IoSlice<'_>], offset: off_t) -> Result<usize> { in pwritev()
132 /// This is the same underlying C structure as `IoSlice`,
134 /// therefore not represented in Rust by an actual slice as `IoSlice` is. It
155 note = "`IoVec` is no longer used in the public interface, use `IoSlice` or `IoSliceMut` instead"
170 note = "Use the `Deref` impl of `IoSlice` or `IoSliceMut` instead"
185 #[deprecated(since = "0.24.0", note = "Use `IoSlice
[all...]
H A Dsendfile.rs71 use std::io::IoSlice;
76 Option<Vec<IoSlice<'a>>>,
77 Option<Vec<IoSlice<'a>>>,
85 let header_iovecs: Option<Vec<IoSlice<'_>>> = in new()
86 headers.map(|s| s.iter().map(|b| IoSlice::new(b)).collect()); in new()
87 let trailer_iovecs: Option<Vec<IoSlice<'_>>> =
88 trailers.map(|s| s.iter().map(|b| IoSlice::new(b)).collect());
H A Daio.rs27 use std::io::{IoSlice, IoSliceMut};
869 /// # use std::io::IoSlice;
875 /// let wbufs = [IoSlice::new(wbuf0), IoSlice::new(wbuf1)];
926 bufs: &[IoSlice<'a>], in new()
1234 let wbufs = [IoSlice::new(&wbuf)]; in casting_vectored()
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dio_slice.rs13 pub struct IoSlice<'a> { structure names
18 impl<'a> IoSlice<'a> { impls
20 pub fn new(buf: &'a [u8]) -> IoSlice<'a> { in new()
21 IoSlice { in new()
33 panic!("advancing IoSlice beyond its length"); in advance()
H A Dsyscalls.rs25 use crate::io::{self, FdFlags, IoSlice, IoSliceMut, PollFd};
103 pub(crate) fn writev(fd: BorrowedFd<'_>, bufs: &[IoSlice]) -> io::Result<usize> {
134 pub(crate) fn pwritev(fd: BorrowedFd<'_>, bufs: &[IoSlice], offset: u64) -> io::Result<usize> {
200 bufs: &[IoSlice],
227 bufs: &[IoSlice],
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Dio_slice.rs11 /// <https://doc.rust-lang.org/nightly/std/io/struct.IoSlice.html>
14 pub struct IoSlice<'a> { structure names
19 impl<'a> IoSlice<'a> { impls
20 /// <https://doc.rust-lang.org/nightly/std/io/struct.IoSlice.html#method.new>
22 pub fn new(buf: &'a [u8]) -> IoSlice<'a> { in new()
23 IoSlice { in new()
32 /// <https://doc.rust-lang.org/nightly/std/io/struct.IoSlice.html#method.advance>
36 panic!("advancing IoSlice beyond its length"); in advance()
45 /// <https://doc.rust-lang.org/nightly/std/io/struct.IoSlice.html#method.as_slice>
H A Dsyscalls.rs22 self, epoll, DupFlags, EventfdFlags, FdFlags, IoSlice, IoSliceMut, IoSliceRaw, PipeFlags,
221 pub(crate) fn writev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>]) -> io::Result<usize> {
228 pub(crate) fn pwritev(fd: BorrowedFd<'_>, bufs: &[IoSlice<'_>], pos: u64) -> io::Result<usize> {
257 bufs: &[IoSlice<'_>],
/third_party/rust/crates/rustix/src/io/
H A Dread_write.rs6 // Declare `IoSlice` and `IoSliceMut`.
9 pub use backend::io::io_slice::{IoSlice, IoSliceMut};
12 pub use std::io::{IoSlice, IoSliceMut};
108 pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in readv()
138 pub fn pwritev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Result<usize> { in readv()
173 bufs: &[IoSlice<'_>], in pwritev2()
H A Dmod.rs82 pub use read_write::{pread, pwrite, read, readv, write, writev, IoSlice, IoSliceMut};
/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs234 use std::io::IoSlice;
343 let iovecs = vec![IoSlice::new(&buf1[0..3]), IoSlice::new(&buf2[0..3])]; in test_vmsplice()
/third_party/rust/crates/nix/src/sys/socket/
H A Dmod.rs16 use std::io::{IoSlice, IoSliceMut};
688 /// # use std::io::{IoSlice, IoSliceMut};
706 /// let iov = [IoSlice::new(message)];
1448 /// # use std::io::IoSlice;
1454 /// let iov = [IoSlice::new(b"hello")];
1463 /// # use std::io::IoSlice;
1470 /// let iov = [IoSlice::new(b"hello")];
1475 pub fn sendmsg<S>(fd: RawFd, iov: &[IoSlice<'_>], cmsgs: &[ControlMessage], in sendmsg()
1529 I: AsRef<[IoSlice<'a>]> + 'a, in sendmmsg()
1655 /// iterators over [`IoSlice`] wit
[all...]

Completed in 10 milliseconds