Function sgxs::util::size_fit_natural[][src]

pub fn size_fit_natural(size: u64) -> u64
Expand description

Given a size in bytes, return the size in bytes of the naturally-aligned structure required to cover the size.

This is the smallest power of two that is equal to or higher than the input size.