Function weightToBitCount [src]
Prototype
pub fn weightToBitCount(weight: u4, max_bit_count: u4) u4 Parameters
weight: u4max_bit_count: u4 Source
pub fn weightToBitCount(weight: u4, max_bit_count: u4) u4 {
return if (weight == 0) 0 else ((max_bit_count + 1) - weight);
}