ParagonIE\Halite\Structure\MerkleTree::getSizeRoundedUp PHP Method

getSizeRoundedUp() public static method

Let's go ahead and round up to the nearest multiple of 2
public static getSizeRoundedUp ( integer $inputSize ) : integer
$inputSize integer
return integer
    public static function getSizeRoundedUp(int $inputSize) : int
    {
        $order = 1;
        while ($order < $inputSize) {
            $order <<= 1;
        }
        return $order;
    }