(&mut self, b: B)
| 118 | /// If the provided [`Bytes`] is empty, we skip appending it. |
| 119 | #[inline] |
| 120 | pub fn push<B: Into<Bytes>>(&mut self, b: B) { |
| 121 | let b: Bytes = b.into(); |
| 122 | if !b.is_empty() { |
| 123 | self.len += b.len(); |
| 124 | self.segments.push((b, PADDING_DEFAULT)); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | /// Consumes `self` returning a type that implements [`io::Read`] and [`io::Seek`]. |
| 129 | /// |