pub fn pack_resource_id(
bif_index: u32,
resource_index: u32,
) -> Result<u32, KeyBinaryError>Expand description
Packs (bif_index, resource_index) into KEY resource_id format.
ยงErrors
KeyBinaryError::ValueOverflow when either index is too wide for its
share of the packed u32. The BIF index gets the top twelve bits and the
resource index the low twenty, so the resource index is the one an
ordinary install can push against.