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

Method set_content_range

atomic-core/src/change/ops.rs:807–809  ·  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

805 /// * `start` - Start byte position in the change content buffer
806 /// * `end` - End byte position in the change content buffer
807 pub fn set_content_range(&mut self, start: ChangePosition, end: ChangePosition) {
808 self.content_range = Some((start, end));
809 }
810
811 /// Set the content range using a builder pattern.
812 #[must_use]

Calls

no outgoing calls