Home
last modified time | relevance | path

Searched refs:ReadBuf (Results 1 – 25 of 44) sorted by relevance

12

/external/rust/crates/tokio/src/io/
Dread_buf.rs27 pub struct ReadBuf<'a> { struct
33 impl<'a> ReadBuf<'a> { argument
36 pub fn new(buf: &'a mut [u8]) -> ReadBuf<'a> { in new()
39 ReadBuf { in new()
50 pub fn uninit(buf: &'a mut [MaybeUninit<u8>]) -> ReadBuf<'a> { in uninit()
51 ReadBuf { in uninit()
86 pub fn take(&mut self, n: usize) -> ReadBuf<'_> { in take()
89 unsafe { ReadBuf::uninit(&mut self.unfilled_mut()[..max]) } in take()
277 impl fmt::Debug for ReadBuf<'_> { implementation
Dasync_read.rs1 use super::ReadBuf;
56 buf: &mut ReadBuf<'_>, in poll_read()
65 buf: &mut ReadBuf<'_>,
88 buf: &mut ReadBuf<'_>, in poll_read()
98 buf: &mut ReadBuf<'_>, in poll_read()
112 buf: &mut ReadBuf<'_>, in poll_read()
Dstdin.rs2 use crate::io::{AsyncRead, ReadBuf};
69 buf: &mut ReadBuf<'_>, in poll_read()
Dblocking.rs2 use crate::io::{AsyncRead, AsyncWrite, ReadBuf};
56 dst: &mut ReadBuf<'_>, in poll_read()
206 pub(crate) fn copy_to(&mut self, dst: &mut ReadBuf<'_>) -> usize { in copy_to()
232 pub(crate) fn ensure_capacity_for(&mut self, bytes: &ReadBuf<'_>) { in ensure_capacity_for()
/external/rust/crates/tokio/src/io/util/
Dread_buf.rs11 pub(crate) fn read_buf<'a, R, B>(reader: &'a mut R, buf: &'a mut B) -> ReadBuf<'a, R, B> in read_buf()
16 ReadBuf { in read_buf()
27 pub struct ReadBuf<'a, R, B> {
35 impl<R, B> Future for ReadBuf<'_, R, B> implementation
43 use crate::io::ReadBuf; in poll()
55 let mut buf = ReadBuf::uninit(dst); in poll()
Dvec_with_initialized.rs1 use crate::io::ReadBuf;
71 pub(crate) fn get_read_buf<'a>(&'a mut self) -> ReadBuf<'a> { in get_read_buf()
86 let mut read_buf = ReadBuf::uninit(slice); in get_read_buf()
126 pub(crate) fn into_read_buf_parts(rb: ReadBuf<'_>) -> ReadBufParts { in into_read_buf_parts()
Dread_exact.rs1 use crate::io::{AsyncRead, ReadBuf};
22 buf: ReadBuf::new(buf), in read_exact()
36 buf: ReadBuf<'a>,
Drepeat.rs1 use crate::io::{AsyncRead, ReadBuf};
54 buf: &mut ReadBuf<'_>, in poll_read()
Dempty.rs1 use crate::io::{AsyncBufRead, AsyncRead, ReadBuf};
54 _: &mut ReadBuf<'_>, in poll_read()
Dread.rs1 use crate::io::{AsyncRead, ReadBuf};
51 let mut buf = ReadBuf::new(*me.buf); in poll()
Dmem.rs3 use crate::io::{AsyncRead, AsyncWrite, ReadBuf};
101 buf: &mut ReadBuf<'_>, in poll_read()
166 buf: &mut ReadBuf<'_>, in poll_read()
Dbuf_reader.rs2 use crate::io::{AsyncBufRead, AsyncRead, AsyncWrite, ReadBuf};
102 buf: &mut ReadBuf<'_>, in poll_read()
130 let mut buf = ReadBuf::new(me.buf); in poll_fill_buf()
Dread_int.rs1 use crate::io::{AsyncRead, ReadBuf};
57 let mut buf = ReadBuf::new(&mut me.buf[*me.read as usize..]);
115 let mut buf = ReadBuf::new(&mut buf);
Dtake.rs1 use crate::io::{AsyncBufRead, AsyncRead, ReadBuf};
81 buf: &mut ReadBuf<'_>, in poll_read()
Dasync_read_ext.rs3 use crate::io::util::read_buf::{read_buf, ReadBuf};
223 fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B>
/external/flatbuffers/java/com/google/flatbuffers/
DFlexBuffers.java103 private static final ReadBuf EMPTY_BB = new ArrayReadWriteBuf(new byte[] {0}, 1);
154 private static int indirect(ReadBuf bb, int offset, int byteWidth) { in indirect()
160 private static long readUInt(ReadBuf buff, int end, int byteWidth) { in readUInt()
171 private static int readInt(ReadBuf buff, int end, int byteWidth) { in readInt()
176 private static long readLong(ReadBuf buff, int end, int byteWidth) { in readLong()
186 private static double readDouble(ReadBuf buff, int end, int byteWidth) { in readDouble()
211 public static Reference getRoot(ReadBuf buffer) { in getRoot()
227 private ReadBuf bb;
233 Reference(ReadBuf bb, int end, int parentWidth, int packedType) { in Reference()
237 Reference(ReadBuf bb, int end, int parentWidth, int byteWidth, int type) { in Reference()
[all …]
/external/rust/crates/tokio/tests/
Dio_read.rs4 use tokio::io::{AsyncRead, AsyncReadExt, ReadBuf};
22 buf: &mut ReadBuf<'_>, in read()
46 buf: &mut ReadBuf<'_>, in poll_read()
48 *buf = ReadBuf::new(Box::leak(vec![0; buf.capacity()].into_boxed_slice())); in poll_read()
Dio_copy.rs4 use tokio::io::{self, AsyncRead, ReadBuf};
18 buf: &mut ReadBuf<'_>, in copy()
Dio_read_buf.rs4 use tokio::io::{AsyncRead, AsyncReadExt, ReadBuf};
21 buf: &mut ReadBuf<'_>, in read_buf()
Dudp.rs7 use tokio::{io::ReadBuf, net::UdpSocket};
40 let mut read = ReadBuf::new(&mut recv_buf); in send_recv_poll()
72 let mut read = ReadBuf::new(&mut recv_buf); in send_to_recv_from_poll()
117 let mut read = ReadBuf::new(&mut recv_buf); in send_to_peek_from_poll()
124 let mut read = ReadBuf::new(&mut recv_buf); in send_to_peek_from_poll()
129 let mut read = ReadBuf::new(&mut recv_buf); in send_to_peek_from_poll()
203 let mut read = ReadBuf::new(&mut recv_buf); in split_chan_poll()
215 let mut read = ReadBuf::new(&mut recv_buf); in split_chan_poll()
Dio_read_to_end.rs6 use tokio::io::{AsyncRead, AsyncReadExt, ReadBuf};
35 buf: &mut ReadBuf<'_>, in poll_read()
Dio_split.rs4 use tokio::io::{split, AsyncRead, AsyncWrite, ReadBuf, ReadHalf, WriteHalf};
16 buf: &mut ReadBuf<'_>, in poll_read()
/external/rust/crates/tokio/src/net/tcp/
Dsplit.rs12 use crate::io::{AsyncRead, AsyncWrite, ReadBuf};
89 buf: &mut ReadBuf<'_>, in poll_peek()
134 let mut buf = ReadBuf::new(buf); in peek()
143 buf: &mut ReadBuf<'_>, in poll_read()
Dsplit_owned.rs12 use crate::io::{AsyncRead, AsyncWrite, ReadBuf};
144 buf: &mut ReadBuf<'_>, in poll_peek()
189 let mut buf = ReadBuf::new(buf); in peek()
198 buf: &mut ReadBuf<'_>, in poll_read()
/external/rust/crates/tokio/src/net/unix/
Dsplit.rs11 use crate::io::{AsyncRead, AsyncWrite, ReadBuf};
54 buf: &mut ReadBuf<'_>, in poll_read()

12