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

Method offset_index_len

crates/commitlog/src/lib.rs:151–153  ·  view source on GitHub ↗

Compute the length in bytes of an offset index based on the settings in `self`.

(&self)

Source from the content-addressed store, hash-verified

149 /// Compute the length in bytes of an offset index based on the settings in
150 /// `self`.
151 pub fn offset_index_len(&self) -> u64 {
152 self.max_segment_size / self.offset_index_interval_bytes
153 }
154}
155
156/// The canonical commitlog API over a repository backend `R`.

Callers 2

create_segmentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected