MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / pointers_for

Method pointers_for

crates/table/src/pointer_map.rs:196–198  ·  view source on GitHub ↗

Returns the row pointers associated with the given row `hash`.

(&self, hash: RowHash)

Source from the content-addressed store, hash-verified

194
195 /// Returns the row pointers associated with the given row `hash`.
196 pub fn pointers_for(&self, hash: RowHash) -> &[RowPointer] {
197 self.map.get(&hash).map_or(&[], |poc| self.poc_pointers(poc))
198 }
199
200 /// Returns the row pointers for `poc`.
201 fn poc_pointers<'a>(&'a self, poc: &'a PtrOrCollider) -> &'a [RowPointer] {

Callers 1

bench_pointers_forFunction · 0.45

Calls 2

poc_pointersMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected