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

Method iter_fixed_len

crates/table/src/page.rs:1527–1532  ·  view source on GitHub ↗

Returns an iterator over all the [`PageOffset`]s of the fixed rows in this page. The rows are assumed to be `fixed_row_size` bytes long. NOTE: This method is not `unsafe` as it cannot trigger UB. However, when provided with garbage input, it will return garbage back. It is the caller's responsibility to ensure that `PageOffset`s derived from this iterator are valid when used to do anything `unsa

(&self, fixed_row_size: Size)

Source from the content-addressed store, hash-verified

1525 /// It is the caller's responsibility to ensure that `PageOffset`s derived from
1526 /// this iterator are valid when used to do anything `unsafe`.
1527 pub fn iter_fixed_len(&self, fixed_row_size: Size) -> FixedLenRowsIter<'_> {
1528 FixedLenRowsIter {
1529 idx_iter: self.header.fixed.present_rows.iter_set(),
1530 fixed_row_size,
1531 }
1532 }
1533
1534 /// Returns an iterator over all the `VarLenGranule`s of the var-len object
1535 /// that has its first granule at offset `first_granule`.

Calls 1

iter_setMethod · 0.80