Lines Matching refs:RangeBuf
601 data: BinaryHeap<RangeBuf>,
637 pub fn push(&mut self, buf: RangeBuf) -> Result<()> { in push()
884 data: BinaryHeap<RangeBuf>,
931 let buf = RangeBuf::from(&[], self.off, fin); in push_slice()
945 let buf = RangeBuf::from(data, self.off, fin); in push_slice()
954 pub fn push(&mut self, buf: RangeBuf) -> Result<()> { in push()
994 pub fn pop(&mut self, max_data: usize) -> Result<RangeBuf> { in pop() argument
995 let mut out = RangeBuf::default(); in pop()
1001 let mut out_off = self.data.peek().map_or_else(|| out.off, RangeBuf::off); in pop()
1141 pub struct RangeBuf { struct
1156 impl RangeBuf { argument
1158 pub(crate) fn from(buf: &[u8], off: u64, fin: bool) -> RangeBuf { in from() argument
1159 RangeBuf { in from()
1198 pub fn split_off(&mut self, at: usize) -> RangeBuf { in split_off() argument
1199 let buf = RangeBuf { in split_off()
1212 impl std::ops::Deref for RangeBuf { implementation
1220 impl std::ops::DerefMut for RangeBuf { implementation
1226 impl Ord for RangeBuf { implementation
1227 fn cmp(&self, other: &RangeBuf) -> cmp::Ordering { in cmp()
1233 impl PartialOrd for RangeBuf { implementation
1234 fn partial_cmp(&self, other: &RangeBuf) -> Option<cmp::Ordering> { in partial_cmp()
1239 impl PartialEq for RangeBuf { implementation
1240 fn eq(&self, other: &RangeBuf) -> bool { in eq()
1264 let buf = RangeBuf::from(b"hello", 0, false); in empty_stream_frame()
1274 let buf = RangeBuf::from(b"", 10, false); in empty_stream_frame()
1281 let buf = RangeBuf::from(b"", 16, false); in empty_stream_frame()
1285 let buf = RangeBuf::from(b"", 5, true); in empty_stream_frame()
1292 let buf = RangeBuf::from(b"", 5, true); in empty_stream_frame()
1299 let buf = RangeBuf::from(b"aa", 3, true); in empty_stream_frame()
1306 let buf = RangeBuf::from(b"", 6, true); in empty_stream_frame()
1308 let buf = RangeBuf::from(b"", 4, true); in empty_stream_frame()
1322 let first = RangeBuf::from(b"hello", 0, false); in ordered_read()
1323 let second = RangeBuf::from(b"world", 5, false); in ordered_read()
1324 let third = RangeBuf::from(b"something", 10, true); in ordered_read()
1359 let first = RangeBuf::from(b"something", 0, false); in split_read()
1360 let second = RangeBuf::from(b"helloworld", 9, true); in split_read()
1399 let first = RangeBuf::from(b"something", 0, false); in incomplete_read()
1400 let second = RangeBuf::from(b"helloworld", 9, true); in incomplete_read()
1427 let first = RangeBuf::from(b"something", 0, false); in zero_len_read()
1428 let second = RangeBuf::from(b"", 9, true); in zero_len_read()
1455 let first = RangeBuf::from(b"something", 0, false); in past_read()
1456 let second = RangeBuf::from(b"hello", 3, false); in past_read()
1457 let third = RangeBuf::from(b"ello", 4, true); in past_read()
1458 let fourth = RangeBuf::from(b"ello", 5, true); in past_read()
1494 let first = RangeBuf::from(b"something", 0, false); in fully_overlapping_read()
1495 let second = RangeBuf::from(b"hello", 4, false); in fully_overlapping_read()
1525 let first = RangeBuf::from(b"something", 0, false); in fully_overlapping_read2()
1526 let second = RangeBuf::from(b"hello", 4, false); in fully_overlapping_read2()
1556 let first = RangeBuf::from(b"something", 0, false); in fully_overlapping_read3()
1557 let second = RangeBuf::from(b"hello", 3, false); in fully_overlapping_read3()
1587 let first = RangeBuf::from(b"somethingsomething", 0, false); in fully_overlapping_read_multi()
1588 let second = RangeBuf::from(b"hello", 3, false); in fully_overlapping_read_multi()
1589 let third = RangeBuf::from(b"hello", 12, false); in fully_overlapping_read_multi()
1624 let first = RangeBuf::from(b"something", 0, false); in overlapping_start_read()
1625 let second = RangeBuf::from(b"hello", 8, true); in overlapping_start_read()
1654 let first = RangeBuf::from(b"hello", 0, false); in overlapping_end_read()
1655 let second = RangeBuf::from(b"something", 3, true); in overlapping_end_read()
1684 let first = RangeBuf::from(b"hello", 8, false); in partially_multi_overlapping_reordered_read()
1685 let second = RangeBuf::from(b"something", 0, false); in partially_multi_overlapping_reordered_read()
1686 let third = RangeBuf::from(b"moar", 11, true); in partially_multi_overlapping_reordered_read()
1721 let first = RangeBuf::from(b"aaa", 0, false); in partially_multi_overlapping_reordered_read2()
1722 let second = RangeBuf::from(b"bbb", 2, false); in partially_multi_overlapping_reordered_read2()
1723 let third = RangeBuf::from(b"ccc", 4, false); in partially_multi_overlapping_reordered_read2()
1724 let fourth = RangeBuf::from(b"ddd", 6, false); in partially_multi_overlapping_reordered_read2()
1725 let fifth = RangeBuf::from(b"eee", 9, false); in partially_multi_overlapping_reordered_read2()
1726 let sixth = RangeBuf::from(b"fff", 11, false); in partially_multi_overlapping_reordered_read2()
1992 let first = RangeBuf::from(b"hello", 0, false); in recv_flow_control()
1993 let second = RangeBuf::from(b"world", 5, false); in recv_flow_control()
1994 let third = RangeBuf::from(b"something", 10, false); in recv_flow_control()
2012 let third = RangeBuf::from(b"something", 10, false); in recv_flow_control()
2021 let first = RangeBuf::from(b"hello", 0, true); in recv_past_fin()
2022 let second = RangeBuf::from(b"world", 5, false); in recv_past_fin()
2033 let first = RangeBuf::from(b"hello", 0, true); in recv_fin_dup()
2034 let second = RangeBuf::from(b"hello", 0, true); in recv_fin_dup()
2051 let first = RangeBuf::from(b"hello", 0, true); in recv_fin_change()
2052 let second = RangeBuf::from(b"world", 5, true); in recv_fin_change()
2063 let first = RangeBuf::from(b"hello", 0, true); in recv_fin_lower_than_received()
2064 let second = RangeBuf::from(b"world", 5, false); in recv_fin_lower_than_received()
2077 let first = RangeBuf::from(b"hello", 0, false); in recv_fin_flow_control()
2078 let second = RangeBuf::from(b"world", 5, true); in recv_fin_flow_control()
2095 let first = RangeBuf::from(b"hello", 0, true); in recv_fin_reset_mismatch()
2106 let first = RangeBuf::from(b"hello", 0, false); in recv_reset_dup()
2118 let first = RangeBuf::from(b"hello", 0, false); in recv_reset_change()
2130 let first = RangeBuf::from(b"hello", 0, false); in recv_reset_lower_than_received()
2160 let first = RangeBuf::from(b"helloworldsomet", 0, false); in send_flow_control()
2196 let first = RangeBuf::from(b"hello", 0, true); in send_fin_dup()
2197 let second = RangeBuf::from(b"hello", 0, true); in send_fin_dup()
2208 let second = RangeBuf::from(b"hello", 0, false); in send_undo_fin()
2310 let first = RangeBuf::from(b"hello", 0, false); in recv_data_below_off()
2320 let first = RangeBuf::from(b"elloworld", 1, true); in recv_data_below_off()
2343 let buf = RangeBuf::from(b"hello", 0, true); in stream_complete()