pub fn encode_uint(
maxval: &IntLit,
value: &RuntimeValue,
) -> Result<AlignedValue>Expand description
Encode a Uint literal sized by its maxval. Picks the alignment
width matching the JS backend’s _descriptor_N-emit convention:
≤ u8::MAX → 1 byte, ≤ u16::MAX → 2 bytes, ≤ u32::MAX → 4
bytes, ≤ u64::MAX → 8 bytes, otherwise 16 bytes.