Appends content to the buffer and returns the byte range.
(&mut self, data: &[u8])
| 321 | |
| 322 | /// Appends content to the buffer and returns the byte range. |
| 323 | pub(crate) fn append_content(&mut self, data: &[u8]) -> std::ops::Range<usize> { |
| 324 | let start = self.content.len(); |
| 325 | self.content.extend_from_slice(data); |
| 326 | let end = self.content.len(); |
| 327 | self.stats.content_bytes += data.len(); |
| 328 | start..end |
| 329 | } |
| 330 | |
| 331 | /// Merges another builder's results into this one. |
| 332 | pub fn merge(&mut self, other: CrdtChangeBuilder) { |
no test coverage detected