Home
last modified time | relevance | path

Searched refs:IoSlice (Results 1 – 25 of 36) sorted by relevance

12

/external/rust/crates/futures-util/src/io/
Dwrite_all_vectored.rs5 use futures_io::IoSlice;
16 bufs: &'a mut [IoSlice<'a>],
22 pub(super) fn new(writer: &'a mut W, bufs: &'a mut [IoSlice<'a>]) -> Self { in new()
23 Self { writer, bufs: IoSlice::advance(bufs, 0) } in new()
37 this.bufs = IoSlice::advance(mem::take(&mut this.bufs), n); in poll()
53 use crate::io::{AsyncWrite, AsyncWriteExt, IoSlice};
79 self.poll_write_vectored(cx, &[IoSlice::new(buf)]) in poll_write()
85 bufs: &[IoSlice<'_>], in poll_write_vectored()
134 let bufs = &[IoSlice::new(&[2, 2, 2])]; in test_writer_read_from_one_buf()
138 let bufs = &[IoSlice::new(&[3]), IoSlice::new(&[4, 4])]; in test_writer_read_from_one_buf()
[all …]
Dwrite_vectored.rs4 use std::io::{self, IoSlice};
12 bufs: &'a [IoSlice<'a>],
18 pub(super) fn new(writer: &'a mut W, bufs: &'a [IoSlice<'a>]) -> Self { in new()
Dsink.rs2 use futures_io::{AsyncWrite, IoSlice};
48 bufs: &[IoSlice<'_>], in poll_write_vectored()
Dallow_std.rs4 use futures_io::{AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead, IoSlice, IoSliceMut, SeekFrom};
67 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
88 fn poll_write_vectored(mut self: Pin<&mut Self>, _: &mut Context<'_>, bufs: &[IoSlice<'_>]) in poll_write_vectored()
Dcursor.rs4 use futures_io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite, IoSlice, IoSliceMut, SeekFrom};
208 fn poll_write_vectored(mut self: Pin<&mut Self>, _: &mut Context<'_>, bufs: &[IoSlice<'_>])
Dmod.rs29 pub use std::io::{Error, ErrorKind, IoSlice, IoSliceMut, Result, SeekFrom};
457 fn write_vectored<'a>(&'a mut self, bufs: &'a [IoSlice<'a>]) -> WriteVectored<'a, Self> in write_vectored()
536 bufs: &'a mut [IoSlice<'a>], in write_all_vectored()
Dbuf_writer.rs3 use futures_io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite, IoSlice, SeekFrom};
111 bufs: &[IoSlice<'_>], in poll_write_vectored()
Dsplit.rs4 use futures_io::{AsyncRead, AsyncWrite, IoSlice, IoSliceMut};
78 fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) in poll_write_vectored()
/external/rust/crates/bytes/tests/
Dtest_chain.rs5 use std::io::IoSlice;
59 IoSlice::new(b1), in vectored_read()
60 IoSlice::new(b2), in vectored_read()
61 IoSlice::new(b3), in vectored_read()
62 IoSlice::new(b4), in vectored_read()
80 IoSlice::new(b1), in vectored_read()
81 IoSlice::new(b2), in vectored_read()
82 IoSlice::new(b3), in vectored_read()
83 IoSlice::new(b4), in vectored_read()
101 IoSlice::new(b1), in vectored_read()
[all …]
Dtest_buf.rs5 use std::io::IoSlice;
54 let mut dst = [IoSlice::new(b1), IoSlice::new(b2)]; in test_bufs_vec()
/external/rust/crates/tokio/src/io/
Dasync_write.rs1 use std::io::{self, IoSlice};
157 bufs: &[IoSlice<'_>], in poll_write_vectored()
194 bufs: &[IoSlice<'_>],
237 bufs: &[IoSlice<'_>], in poll_write_vectored()
268 bufs: &[IoSlice<'_>], in poll_write_vectored()
298 bufs: &[IoSlice<'_>], in poll_write_vectored()
328 bufs: &[IoSlice<'_>], in poll_write_vectored()
358 bufs: &[IoSlice<'_>], in poll_write_vectored()
388 bufs: &[IoSlice<'_>], in poll_write_vectored()
/external/rust/crates/tokio/src/io/util/
Dwrite_vectored.rs8 use std::{future::Future, io::IoSlice};
16 bufs: &'a [IoSlice<'b>],
25 bufs: &'a [IoSlice<'b>], in write_vectored()
Dasync_write_ext.rs16 use std::io::IoSlice;
155 … fn write_vectored<'a, 'b>(&'a mut self, bufs: &'a [IoSlice<'b>]) -> WriteVectored<'a, 'b, Self>
/external/rust/crates/futures/tests/
Dio_write.rs78 io::IoSlice::new(&[]), in write_vectored_first_non_empty()
79 io::IoSlice::new(&[]), in write_vectored_first_non_empty()
80 io::IoSlice::new(b"four") in write_vectored_first_non_empty()
/external/crosvm/sys_util/src/
Dsock_ctrl_msg.rs9 use std::io::{IoSlice, IoSliceMut};
279 let slices: Vec<IoSlice> = bufs.iter().map(|&b| IoSlice::new(b)).collect(); in send_bufs_with_fds()
376 unsafe impl<'a> AsIobuf for IoSlice<'a> { implementation
474 let ioslice = IoSlice::new(&send_buf); in send_recv_no_fd()
510 let ioslice = IoSlice::new([].as_ref()); in send_recv_only_fd()
538 let ioslice = IoSlice::new([237].as_ref()); in send_recv_with_fd()
/external/rust/crates/futures-io/src/
Dlib.rs37 pub use io::{Error, ErrorKind, Result, IoSlice, IoSliceMut, SeekFrom};
178 fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) in poll_write_vectored()
401 … fn poll_write_vectored(mut self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>])
436 fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) in poll_write_vectored()
459 … fn poll_write_vectored(mut self: Pin<&mut Self>, _: &mut Context<'_>, bufs: &[IoSlice<'_>])
/external/rust/crates/mio/src/net/uds/
Dstream.rs5 use std::io::{self, IoSlice, IoSliceMut, Read, Write};
99 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
113 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
/external/rust/crates/bytes/src/buf/
Dbuf_impl.rs8 use std::io::IoSlice;
160 fn chunks_vectored<'a>(&'a self, dst: &mut [IoSlice<'a>]) -> usize { in chunks_vectored()
166 dst[0] = IoSlice::new(self.chunk()); in chunks_vectored()
916 fn chunks_vectored<'b>(&'b self, dst: &mut [IoSlice<'b>]) -> usize {
Dchain.rs5 use std::io::IoSlice;
168 fn chunks_vectored<'a>(&'a self, dst: &mut [IoSlice<'a>]) -> usize { in chunks_vectored()
/external/rust/crates/mio/src/net/tcp/
Dstream.rs2 use std::io::{self, IoSlice, IoSliceMut, Read, Write};
200 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
214 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
/external/rust/crates/mio/src/sys/unix/
Dpipe.rs6 use std::io::{self, IoSlice, IoSliceMut, Read, Write};
250 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
264 fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in write_vectored()
/external/crosvm/base/src/
Dtube.rs5 use std::io::{self, IoSlice};
77 .send_with_fds(&[IoSlice::new(&msg_json)], &msg_descriptors) in send()
/external/rust/crates/tokio/src/net/unix/
Dsplit.rs72 bufs: &[io::IoSlice<'_>], in poll_write_vectored()
Dstream.rs667 bufs: &[io::IoSlice<'_>], in poll_write_vectored()
718 bufs: &[io::IoSlice<'_>], in poll_write_vectored_priv()
/external/adhd/cras/client/libcras/src/
Dcras_server_socket.rs69 let ioslice = io::IoSlice::new(message.as_slice()); in send_server_message_with_fds()

12