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

Method poc_pointers

crates/table/src/pointer_map.rs:201–206  ·  view source on GitHub ↗

Returns the row pointers for `poc`.

(&'a self, poc: &'a PtrOrCollider)

Source from the content-addressed store, hash-verified

199
200 /// Returns the row pointers for `poc`.
201 fn poc_pointers<'a>(&'a self, poc: &'a PtrOrCollider) -> &'a [RowPointer] {
202 match poc.unpack() {
203 MapSlotRef::Pointer(ro) => slice::from_ref(ro),
204 MapSlotRef::Collider(ci) => &self.colliders[ci.idx()],
205 }
206 }
207
208 /// Returns the row pointers associated with the given row `hash`.
209 ///

Callers 2

pointers_forMethod · 0.80
iterMethod · 0.80

Calls 2

unpackMethod · 0.45
idxMethod · 0.45

Tested by

no test coverage detected