Iterator yielding the start offsets of the commits in a segment.
()
| 32 | |
| 33 | /// Iterator yielding the start offsets of the commits in a segment. |
| 34 | fn 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 | |
| 38 | type Log = Rc<commitlog::Generic<repo::Memory, [u8; TX_SIZE]>>; |
| 39 |
no outgoing calls
no test coverage detected
searching dependent graphs…