Lines Matching refs:push_slice

919     pub fn push_slice(  in push_slice()  method
1787 assert!(send.push_slice(first, false).is_ok()); in multi_write()
1790 assert!(send.push_slice(second, true).is_ok()); in multi_write()
1808 assert!(send.push_slice(first, false).is_ok()); in split_write()
1811 assert!(send.push_slice(second, true).is_ok()); in split_write()
1845 assert!(send.push_slice(first, false).is_ok()); in resend()
1848 assert!(send.push_slice(second, true).is_ok()); in resend()
1908 assert_eq!(send.push_slice(first, false), Ok(0)); in write_blocked_by_off()
1911 assert_eq!(send.push_slice(second, true), Ok(0)); in write_blocked_by_off()
1916 assert_eq!(send.push_slice(first, false), Ok(5)); in write_blocked_by_off()
1919 assert_eq!(send.push_slice(second, true), Ok(0)); in write_blocked_by_off()
1938 assert_eq!(send.push_slice(&first[5..], false), Ok(4)); in write_blocked_by_off()
1941 assert_eq!(send.push_slice(second, true), Ok(6)); in write_blocked_by_off()
1953 assert_eq!(send.push_slice(&second[6..], true), Ok(4)); in write_blocked_by_off()
1971 assert!(send.push_slice(first, false).is_ok()); in zero_len_write()
1974 assert!(send.push_slice(&[], true).is_ok()); in zero_len_write()
2144 assert!(stream.send.push_slice(first, false).is_ok()); in send_flow_control()
2145 assert!(stream.send.push_slice(second, false).is_ok()); in send_flow_control()
2146 assert!(stream.send.push_slice(third, false).is_ok()); in send_flow_control()
2184 assert_eq!(stream.send.push_slice(first, false), Ok(5)); in send_past_fin()
2186 assert_eq!(stream.send.push_slice(second, true), Ok(5)); in send_past_fin()
2189 assert_eq!(stream.send.push_slice(third, false), Err(Error::FinalSize)); in send_past_fin()
2210 assert_eq!(stream.send.push_slice(first, true), Ok(5)); in send_undo_fin()
2222 assert!(stream.send.push_slice(slice, true).is_ok()); in send_fin_max_data_match()
2235 assert_eq!(stream.send.push_slice(b"hello", false), Ok(5)); in send_fin_zero_length()
2236 assert_eq!(stream.send.push_slice(b"", true), Ok(0)); in send_fin_zero_length()
2250 assert_eq!(stream.send.push_slice(b"hello", false), Ok(5)); in send_ack()
2251 assert_eq!(stream.send.push_slice(b"world", false), Ok(5)); in send_ack()
2252 assert_eq!(stream.send.push_slice(b"", true), Ok(0)); in send_ack()
2276 assert_eq!(stream.send.push_slice(b"hello", false), Ok(5)); in send_ack_reordering()
2277 assert_eq!(stream.send.push_slice(b"world", false), Ok(5)); in send_ack_reordering()
2278 assert_eq!(stream.send.push_slice(b"", true), Ok(0)); in send_ack_reordering()
2332 assert_eq!(stream.send.push_slice(b"hello", false), Ok(5)); in stream_complete()
2333 assert_eq!(stream.send.push_slice(b"world", false), Ok(5)); in stream_complete()
2338 assert_eq!(stream.send.push_slice(b"", true), Ok(0)); in stream_complete()
2373 assert_eq!(stream.send.push_slice(b"hello", false), Ok(5)); in send_fin_zero_length_output()
2382 assert_eq!(stream.send.push_slice(b"", true), Ok(0)); in send_fin_zero_length_output()