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

Method zero_data

crates/table/src/page.rs:1860–1862  ·  view source on GitHub ↗

Zeroes every byte of row data in this page. # Safety Causes the page header to no longer match the contents, invalidating many assumptions. Should be called in conjunction with [`Self::clear`].

(&mut self)

Source from the content-addressed store, hash-verified

1858 /// Causes the page header to no longer match the contents, invalidating many assumptions.
1859 /// Should be called in conjunction with [`Self::clear`].
1860 pub unsafe fn zero_data(&mut self) {
1861 self.row_data.fill(0);
1862 }
1863
1864 /// Resets this page for reuse of its allocation.
1865 ///

Callers 6

reserve_empty_pageFunction · 0.80
bench_insert_with_holesFunction · 0.80
clear_zeroFunction · 0.80
insert_opt_strFunction · 0.80

Calls 1

fillMethod · 0.80

Tested by

no test coverage detected