Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 47) sorted by relevance

12

/smoltcp-0.9.1/src/storage/
Dring_buffer.rs55 pub fn capacity(&self) -> usize { in capacity()
71 pub fn len(&self) -> usize { in len()
76 pub fn window(&self) -> usize { in window()
82 pub fn contiguous_window(&self) -> usize { in contiguous_window()
98 fn get_idx(&self, idx: usize) -> usize { in get_idx()
109 fn get_idx_unchecked(&self, idx: usize) -> usize { in get_idx_unchecked()
181 pub fn enqueue_many_with<'b, R, F>(&'b mut self, f: F) -> (usize, R) in enqueue_many_with()
183 F: FnOnce(&'b mut [T]) -> (usize, R), in enqueue_many_with()
239 pub fn dequeue_many_with<'b, R, F>(&'b mut self, f: F) -> (usize, R) in dequeue_many_with()
241 F: FnOnce(&'b mut [T]) -> (usize, R), in dequeue_many_with()
[all …]
Dassembler.rs39 fn hole_and_data(hole_size: usize, data_size: usize) -> Contig { in hole_and_data()
54 fn total_size(&self) -> usize { in total_size()
58 fn shrink_hole_by(&mut self, size: usize) { in shrink_hole_by()
62 fn shrink_hole_to(&mut self, size: usize) { in shrink_hole_to()
116 pub fn peek_front(&self) -> usize { in peek_front()
135 fn remove_contig_at(&mut self, at: usize) { in remove_contig_at()
165 pub fn add(&mut self, mut offset: usize, size: usize) -> Result<(), TooManyHolesError> { in add()
251 pub fn remove_front(&mut self) -> usize { in remove_front()
270 offset: usize, in add_then_remove_front()
271 size: usize, in add_then_remove_front()
[all …]
Dpacket_buffer.rs29 fn packet(size: usize, header: H) -> PacketMetadata<H> { in packet()
80 pub fn enqueue(&mut self, size: usize, header: H) -> Result<&mut [u8], Full> { in enqueue()
124 max_size: usize, in enqueue_with_infallible()
127 ) -> Result<usize, Full> in enqueue_with_infallible()
129 F: FnOnce(&'b mut [u8]) -> usize, in enqueue_with_infallible()
233 pub fn packet_capacity(&self) -> usize { in packet_capacity()
238 pub fn payload_capacity(&self) -> usize { in payload_capacity()
/smoltcp-0.9.1/src/socket/
Draw.rs143 pub fn packet_recv_capacity(&self) -> usize { in packet_recv_capacity()
149 pub fn packet_send_capacity(&self) -> usize { in packet_send_capacity()
155 pub fn payload_recv_capacity(&self) -> usize { in payload_recv_capacity()
161 pub fn payload_send_capacity(&self) -> usize { in payload_send_capacity()
195 pub fn send_with<F>(&mut self, max_size: usize, f: F) -> Result<usize, SendError> in send_with()
197 F: FnOnce(&mut [u8]) -> usize, in send_with()
243 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in recv_slice()
273 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in peek_slice()
Dudp.rs203 pub fn packet_recv_capacity(&self) -> usize { in packet_recv_capacity()
209 pub fn packet_send_capacity(&self) -> usize { in packet_send_capacity()
215 pub fn payload_recv_capacity(&self) -> usize { in payload_recv_capacity()
221 pub fn payload_send_capacity(&self) -> usize { in payload_send_capacity()
234 size: usize, in send()
268 max_size: usize, in send_with()
271 ) -> Result<usize, SendError> in send_with()
273 F: FnOnce(&mut [u8]) -> usize, in send_with()
333 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<(usize, IpEndpoint), RecvError> { in recv_slice()
366 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<(usize, &IpEndpoint), RecvError> { in peek_slice()
Dicmp.rs260 pub fn packet_recv_capacity(&self) -> usize { in packet_recv_capacity()
266 pub fn packet_send_capacity(&self) -> usize { in packet_send_capacity()
272 pub fn payload_recv_capacity(&self) -> usize { in payload_recv_capacity()
278 pub fn payload_send_capacity(&self) -> usize { in payload_send_capacity()
294 pub fn send(&mut self, size: usize, endpoint: IpAddress) -> Result<&mut [u8], SendError> { in send()
315 max_size: usize, in send_with()
318 ) -> Result<usize, SendError> in send_with()
320 F: FnOnce(&mut [u8]) -> usize, in send_with()
363 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<(usize, IpAddress), RecvError> { in recv_slice()
Dtcp.rs971 pub fn recv_capacity(&self) -> usize { in recv_capacity()
977 pub fn send_capacity(&self) -> usize { in send_capacity()
994 F: FnOnce(&'b mut SocketBuffer<'a>) -> (usize, R), in send_impl()
1027 F: FnOnce(&'b mut [u8]) -> (usize, R), in send()
1038 pub fn send_slice(&mut self, data: &[u8]) -> Result<usize, SendError> { in send_slice()
1061 F: FnOnce(&'b mut SocketBuffer<'a>) -> (usize, R), in recv_impl()
1091 F: FnOnce(&'b mut [u8]) -> (usize, R), in recv()
1102 pub fn recv_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in recv_slice()
1128 pub fn peek_slice(&mut self, data: &mut [u8]) -> Result<usize, RecvError> { in peek_slice()
1138 pub fn send_queue(&self) -> usize { in send_queue()
[all …]
/smoltcp-0.9.1/src/phy/sys/
Draw_socket.rs49 pub fn interface_mtu(&mut self) -> io::Result<usize> { in interface_mtu()
78 pub fn recv(&mut self, buffer: &mut [u8]) -> io::Result<usize> { in recv()
93 pub fn send(&mut self, buffer: &[u8]) -> io::Result<usize> { in send()
Dtuntap_interface.rs52 pub fn interface_mtu(&mut self) -> io::Result<usize> { in interface_mtu()
84 pub fn recv(&mut self, buffer: &mut [u8]) -> io::Result<usize> { in recv()
98 pub fn send(&mut self, buffer: &[u8]) -> io::Result<usize> { in send()
Dbpf.rs105 pub fn interface_mtu(&mut self) -> io::Result<usize> { in interface_mtu()
113 pub fn recv(&mut self, buffer: &mut [u8]) -> io::Result<usize> { in recv()
137 pub fn send(&mut self, buffer: &[u8]) -> io::Result<usize> { in send()
/smoltcp-0.9.1/src/wire/
Dsixlowpan.rs432 pub const fn buffer_len(&self) -> usize { in buffer_len()
896 pub fn header_len(&self) -> usize { in header_len()
945 fn set_field(&mut self, idx: usize, value: &[u8]) { in set_field()
953 fn set_next_header(&mut self, nh: NextHeader, mut idx: usize) -> usize { in set_next_header()
969 fn set_hop_limit(&mut self, hl: u8, mut idx: usize) -> usize { in set_hop_limit()
991 mut idx: usize, in set_src_address()
992 ) -> usize { in set_src_address()
1057 mut idx: usize, in set_dst_address()
1058 ) -> usize { in set_dst_address()
1198 pub fn buffer_len(&self) -> usize { in buffer_len()
[all …]
Dtcp.rs46 fn add_assign(&mut self, rhs: usize) { in add_assign()
54 fn sub(self, rhs: SeqNumber) -> usize { in sub()
287 pub fn segment_len(&self) -> usize { in segment_len()
673 pub fn buffer_len(&self) -> usize { in buffer_len()
756 pub const fn len(self) -> usize { in len()
884 pub fn header_len(&self) -> usize { in header_len()
910 pub fn buffer_len(&self) -> usize { in buffer_len()
974 pub const fn segment_len(&self) -> usize { in segment_len()
Dip.rs573 payload_len: usize, in new()
639 pub const fn payload_len(&self) -> usize { in payload_len()
649 pub fn set_payload_len(&mut self, length: usize) { in set_payload_len()
669 pub const fn header_len(&self) -> usize { in header_len()
696 pub const fn buffer_len(&self) -> usize { in buffer_len()
Dieee802154.rs46 const fn size(&self) -> usize { in size()
464 fn aux_security_header_start(&self) -> usize { in aux_security_header_start()
472 fn payload_start(&self) -> usize { in payload_start()
794 pub const fn buffer_len(&self) -> usize { in buffer_len()
Ddns.rs263 ) -> Result<(&'a [u8], Option<usize>)> { in parse_name_part()
314 pub const fn buffer_len(&self) -> usize { in buffer_len()
415 pub const fn buffer_len(&self) -> usize { in buffer_len()
Dethernet.rs140 pub const fn buffer_len(payload_len: usize) -> usize { in buffer_len()
280 pub const fn buffer_len(&self) -> usize { in buffer_len()
Dudp.rs249 pub const fn header_len(&self) -> usize { in header_len()
274 payload_len: usize, in emit()
/smoltcp-0.9.1/src/
Dparsers.rs109 fn accept_number(&mut self, max_digits: usize, max_value: u32, hex: bool) -> Result<u32> { in accept_number()
166 (head_idx, tail_idx): (&mut usize, &mut usize),
/smoltcp-0.9.1/src/phy/
Dfault_injector.rs133 pub fn max_packet_size(&self) -> usize { in max_packet_size()
175 pub fn set_max_packet_size(&mut self, size: usize) { in set_max_packet_size()
289 fn consume<R, F>(mut self, len: usize, f: F) -> R in consume()
Dmod.rs242 pub fn ip_mtu(&self) -> usize { in ip_mtu()
352 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
Dpcap_writer.rs75 fn packet_header(&mut self, timestamp: Instant, length: usize) { in packet_header()
245 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
Dloopback.rs78 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
/smoltcp-0.9.1/src/iface/interface/
Dethernet.rs55 buffer_len: usize, in dispatch_ethernet()
Dsixlowpan.rs162 total_size: Option<usize>, in decompress_sixlowpan()
164 ) -> core::result::Result<usize, crate::wire::Error> { in decompress_sixlowpan()
/smoltcp-0.9.1/src/iface/
Dfragmentation.rs94 offset: usize, in add_with()
95 f: impl Fn(&mut [u8]) -> Result<usize, AssemblerError>, in add_with()

12