Allocates a new leaf ID.
(&mut self)
| 313 | |
| 314 | /// Allocates a new leaf ID. |
| 315 | pub(crate) fn alloc_leaf_id(&mut self) -> LeafId { |
| 316 | let id = LeafId::new(self.change_id, self.next_leaf_idx); |
| 317 | self.next_leaf_idx += 1; |
| 318 | self.last_leaf_id = Some(id); |
| 319 | id |
| 320 | } |
| 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> { |
no outgoing calls
no test coverage detected