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

Method contains

atomic-core/src/pristine/span_patch_storage/legacy.rs:28–30  ·  view source on GitHub ↗
(&self, owner: Hash, pos: u64, start: u64, end: u64)

Source from the content-addressed store, hash-verified

26 self.files.get(ordinal as usize).copied()
27 }
28 pub(super) fn contains(&self, owner: Hash, pos: u64, start: u64, end: u64) -> bool {
29 self.ranges.contains(&(owner, pos, start, end))
30 }
31}
32
33pub(super) fn covers(state: &SpanRecordState, target: &ExternalSpan, start: u64, end: u64) -> bool {

Callers 3

metadataFunction · 0.45
retrieveFunction · 0.45
inspectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected