Home
last modified time | relevance | path

Searched refs:read_exact (Results 1 – 25 of 67) sorted by relevance

123

/external/rust/crates/byteorder/src/
Dio.rs57 self.read_exact(&mut buf)?; in read_u8()
87 self.read_exact(&mut buf)?; in read_i8()
114 self.read_exact(&mut buf)?; in read_u16()
141 self.read_exact(&mut buf)?; in read_i16()
167 self.read_exact(&mut buf)?; in read_u24()
193 self.read_exact(&mut buf)?; in read_i24()
219 self.read_exact(&mut buf)?; in read_u32()
245 self.read_exact(&mut buf)?; in read_i32()
271 self.read_exact(&mut buf)?; in read_u48()
297 self.read_exact(&mut buf)?; in read_i48()
[all …]
/external/rust/crates/tokio/tests/
Dio_mem_stream.rs13 b.read_exact(&mut buf).await.unwrap(); in ping_pong()
17 a.read_exact(&mut buf).await.unwrap(); in ping_pong()
28 a.read_exact(&mut buf).await.unwrap(); in across_tasks()
34 b.read_exact(&mut buf).await.unwrap(); in across_tasks()
78 b.read_exact(&mut buf).await.unwrap(); in max_write_size()
Dio_read_exact.rs8 async fn read_exact() { in read_exact() function
12 let n = assert_ok!(rd.read_exact(&mut buf[..]).await); in read_exact()
Dtcp_into_std.rs30 .read_exact(&mut data) in tcp_into_std()
40 let _size = tokio_tcp_stream.read_exact(&mut data).await?; in tcp_into_std()
Dio_copy_bidirectional.rs66 b.read_exact(&mut tmp).await.unwrap(); in test_basic_transfer()
80 a.read_exact(&mut tmp).await.unwrap(); in test_transfer_after_close()
98 a.read_exact(&mut tmp).await.unwrap(); in blocking_one_side_does_not_block_other()
Dtcp_echo.rs28 assert_ok!(stream.read_exact(&mut buf).await); in echo_server()
/external/rust/crates/nix/test/
Dtest_pty.rs147 master.read_exact(&mut buf).unwrap(); in test_read_ptty_pair()
159 slave.read_exact(&mut buf).unwrap(); in test_write_ptty_pair()
176 crate::read_exact(pty.slave, &mut buf); in test_openpty()
183 crate::read_exact(pty.master, &mut buf); in test_openpty()
190 crate::read_exact(pty.master, &mut buf); in test_openpty()
225 crate::read_exact(pty.slave, &mut buf); in test_openpty_with_termios()
231 crate::read_exact(pty.master, &mut buf); in test_openpty_with_termios()
238 crate::read_exact(pty.master, &mut buf); in test_openpty_with_termios()
268 crate::read_exact(pty.master, &mut buf); in test_forkpty()
/external/rust/crates/futures/tests/
Dio_read_exact.rs2 fn read_exact() { in read_exact() function
9 let res = block_on(reader.read_exact(&mut out)); // read 3 bytes out in read_exact()
14 let res = block_on(reader.read_exact(&mut out)); // read another 3 bytes, but only 2 bytes left in read_exact()
/external/rust/crates/tokio/src/io/util/
Dasync_read_ext.rs4 use crate::io::util::read_exact::{read_exact, ReadExact};
277 fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self>
281 read_exact(self, buf)
Dmod.rs49 mod read_exact;
/external/rust/crates/gdbstub/src/connection/impls/
Dtcpstream.rs14 match Read::read_exact(self, &mut buf) { in read()
20 fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error> { in read_exact() method
25 Read::read_exact(self, buf) in read_exact()
Dunixstream.rs58 match Read::read_exact(self, &mut buf) { in read()
64 fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error> { in read_exact() method
69 Read::read_exact(self, buf) in read_exact()
Dboxed.rs12 fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error> { in read_exact() method
13 (**self).read_exact(buf) in read_exact()
Dmod.rs22 fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error> { in read_exact() method
23 (**self).read_exact(buf) in read_exact()
/external/rust/crates/clang-sys/build/
Ddynamic.rs26 file.read_exact(&mut buffer)?; in parse_elf_header()
42 file.read_exact(&mut buffer)?; in parse_pe_header()
47 file.read_exact(&mut buffer)?; in parse_pe_header()
55 file.read_exact(&mut buffer)?; in parse_pe_header()
/external/rust/crates/clang-sys/out/
Ddynamic.rs26 file.read_exact(&mut buffer)?; in parse_elf_header()
42 file.read_exact(&mut buffer)?; in parse_pe_header()
47 file.read_exact(&mut buffer)?; in parse_pe_header()
55 file.read_exact(&mut buffer)?; in parse_pe_header()
/external/rust/crates/protobuf/src/
Dbuf_read_iter.rs276 self.read_exact(&mut target.get_unchecked_mut(..count))?; in read_exact_to_vec()
312 self.read_exact(buf)?; in read_exact_bytes()
338 pub fn read_exact(&mut self, buf: &mut [u8]) -> ProtobufResult<()> { in read_exact() method
359 buf_read.read_exact(buf)?; in read_exact()
363 buf_read.read_exact(buf)?; in read_exact()
512 .read_exact(&mut [1, 2, 3, 4]) in eof_at_limit()
/external/crosvm/sys_util/src/
Dwrite_zeroes.rs139 f.read_exact(&mut readback).unwrap(); in simple_test()
161 f.read_exact(&mut readback).unwrap(); in simple_test()
203 f.read_exact(&mut readback).unwrap(); in large_write_zeroes()
Dstruct_util.rs27 f.read_exact(out_slice).map_err(|_| Error::ReadStruct)?; in read_struct()
48 f.read_exact(out_slice).map_err(|_| Error::ReadStruct)?; in read_struct_slice()
/external/rust/crates/futures-util/src/io/
Dmod.rs104 mod read_exact; module
105 pub use self::read_exact::ReadExact;
262 fn read_exact<'a>( in read_exact() method
Dallow_std.rs121 fn read_exact(&mut self, buf: &mut [u8]) -> io::Result<()> { in read_exact() function
122 self.0.read_exact(buf) in read_exact()
/external/crosvm/disk/src/qcow/
Dqcow_raw_file.rs47 self.file.read_exact(&mut value)?; in read_pointer_table()
90 self.file.read_exact(&mut value)?; in read_refcount_block()
/external/rust/crates/gdbstub/src/connection/
Dmod.rs21 fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Self::Error> { in read_exact() method
/external/rust/crates/criterion/src/
Dconnection.rs73 socket.read_exact(&mut hello_buf)?; in new()
108 self.socket.read_exact(&mut length_buf)?; in recv()
111 self.socket.read_exact(&mut self.receive_buffer)?; in recv()
/external/crosvm/fuzz/
Dqcow_fuzzer.rs36 readable.read_exact(&mut buf[..]).unwrap(); in read_u64()

123