pub fn weightToBitCount(weight: u4, max_bit_count: u4) u4 weight: u4max_bit_count: u41096
1097
1098 pub fn weightToBitCount(weight: u4, max_bit_count: u4) u4 {
return if (weight == 0) 0 else ((max_bit_count + 1) - weight);
}