Searched refs:get_allocated (Results 1 – 3 of 3) sorted by relevance
/smoltcp-0.9.1/src/storage/ |
D | ring_buffer.rs | 352 pub fn get_allocated(&self, offset: usize, mut size: usize) -> &[T] { in get_allocated() method 381 let slice = self.get_allocated(offset, data.len()); in read_allocated() 386 let slice = self.get_allocated(offset, data.len()); in read_allocated() 735 assert_eq!(ring.get_allocated(16, 4), b""); in test_buffer_get_allocated() 736 assert_eq!(ring.get_allocated(0, 4), b""); in test_buffer_get_allocated() 739 assert_eq!(ring.get_allocated(0, 8), b"abcd"); in test_buffer_get_allocated() 744 assert_eq!(ring.get_allocated(4, 8), b"ijkl"); in test_buffer_get_allocated() 748 assert_eq!(ring.get_allocated(4, 8), b"ijkl"); in test_buffer_get_allocated() 780 assert_eq!(no_capacity.get_allocated(0, 0), &[]); in test_buffer_with_no_capacity()
|
D | packet_buffer.rs | 222 if let Some(metadata) = self.metadata_ring.get_allocated(0, 1).first() { in peek() 225 self.payload_ring.get_allocated(0, metadata.size), in peek()
|
/smoltcp-0.9.1/src/socket/ |
D | tcp.rs | 1116 let buffer = self.rx_buffer.get_allocated(0, size); in peek() 2119 repr.payload = self.tx_buffer.get_allocated(offset, size); in dispatch()
|