mmtk::util::metadata::side_metadata::helpers

Function meta_to_data_size

source
pub(super) const fn meta_to_data_size(
    metadata_spec: &SideMetadataSpec,
    meta_size: usize,
) -> usize
Expand description

Calculate the amount of data governed by the give amount of metadata. meta_size can be in any unit, e.g. bits, bytes, pages, blocks, chunks, etc., and the result has the same unit.