Skip to main content

page_offset

Function page_offset 

Source
pub fn page_offset(page: u32, page_size: u32) -> i64
Expand description

The row offset of page page (0 based) of page_size rows, saturated at i64::MAX: u32 * u32 always fits a u64, and an offset past every database’s signed 64-bit row count just yields an empty page.