polkavm_common::utils

Function align_to_next_page_u64

Source
pub const fn align_to_next_page_u64(page_size: u64, value: u64) -> Option<u64>
Expand description

Aligns the value to the next page_size, or returns the value as-is if it’s already aligned.