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

Function commit_boundaries

crates/commitlog/src/tests/bitflip.rs:34–36  ·  view source on GitHub ↗

Iterator yielding the start offsets of the commits in a segment.

()

Source from the content-addressed store, hash-verified

32
33/// Iterator yielding the start offsets of the commits in a segment.
34fn commit_boundaries() -> impl Iterator<Item = usize> {
35 successors(Some(segment::Header::LEN), |n| Some(n + COMMIT_SIZE)).take_while(|&x| x <= MAX_SEGMENT_SIZE)
36}
37
38type Log = Rc<commitlog::Generic<repo::Memory, [u8; TX_SIZE]>>;
39

Callers 1

byte_positionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…