MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_content_range

Method set_content_range

atomic-core/src/change/ops.rs:539–541  ·  view source on GitHub ↗

Set the content range (byte positions in the change content buffer). This is called during globalization to link the CRDT branch to its corresponding graph vertex position. # Arguments `start` - Start byte position in the change content buffer `end` - End byte position in the change content buffer

(&mut self, start: ChangePosition, end: ChangePosition)

Source from the content-addressed store, hash-verified

537 /// * `start` - Start byte position in the change content buffer
538 /// * `end` - End byte position in the change content buffer
539 pub fn set_content_range(&mut self, start: ChangePosition, end: ChangePosition) {
540 self.content_range = Some((start, end));
541 }
542
543 /// Set the content range using a builder pattern.
544 #[must_use]

Calls

no outgoing calls