Searched refs:head (Results 1 – 6 of 6) sorted by relevance
34 pub(crate) head: u16, field42 Self { head: 0, tail: 0 } in new()46 self.head == self.tail in empty()50 self.head != self.tail in has_data()54 seqnum_distance(self.head, self.tail) in count()58 if self.head == self.tail { in compare()61 if self.head < self.tail { in compare()62 if self.head <= pos && pos < self.tail { in compare()65 } else if self.head <= pos || pos < self.tail { in compare()68 if self.head.wrapping_sub(pos) <= pos.wrapping_sub(self.tail) { in compare()[all …]
88 let mut i = location.head; in too_old()102 while i != location.head { in too_old()151 self.filled.head = self.filled.head.wrapping_add(1); in purge_consumed_location()155 self.filled.head = self.filled.head.wrapping_add(1); in purge_consumed_location()174 if self.active.has_data() && (self.active.head == self.filled.head) { in purge_buffers()188 self.active.head = self.active.head.wrapping_add(1); in purge_buffers()192 self.filled.head = self.filled.head.wrapping_add(1); in purge_buffers()262 consume.head = self.active.head; in build_sample()268 consume.head = self.active.head; in build_sample()329 let mut i = consume.head; in build_sample()[all …]
5 let s1 = SampleSequenceLocation { head: 32, tail: 42 }; in test_sample_sequence_location_compare()14 head: 0xffa0, in test_sample_sequence_location_compare()36 head: 65533, in test_sample_sequence_location_range()
19 head: usize, field70 if self.head <= self.tail { in grow()72 n = self.tail - self.head; in grow()81 self.head = 0; in grow()108 head: 0, in new()199 b.head += 1; in read()201 b.head = 0; in read()204 b.head += 1; in read()206 b.head = 0; in read()218 packet[..copied].copy_from_slice(&b.data[b.head..b.head + copied]); in read()[all …]
72 b.head = b.data.len() - 13; in test_wraparound()73 b.tail = b.head; in test_wraparound()
46 pub head: IpAdapterAddressesHead, field