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

Method collider

crates/table/src/pointer_map.rs:84–93  ·  view source on GitHub ↗

Returns a collider.

(c: ColliderSlotIndex)

Source from the content-addressed store, hash-verified

82
83 /// Returns a collider.
84 const fn collider(c: ColliderSlotIndex) -> Self {
85 // Pack the `ColliderSlotIndex` into the page index bits.
86 let pi = PageIndex(c.0 as u64);
87 Self(RowPointer::new(
88 true,
89 pi,
90 PageOffset::VAR_LEN_NULL,
91 SquashedOffset::COMMITTED_STATE,
92 ))
93 }
94
95 /// Returns whether this is a pointer or not.
96 const fn is_ptr(&self) -> bool {

Callers

nothing calls this directly

Calls 2

PageIndexClass · 0.85
newFunction · 0.50

Tested by

no test coverage detected