WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::is_zero() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Compat{}

No Hooks.

Return

true|false.

Usage

$result = ParagonIE_Sodium_Compat::is_zero( $str );
$str(string) (required)
-

Code of ParagonIE_Sodium_Compat::is_zero() WP 5.8.2

public static function is_zero($str)
{
    $d = 0;
    for ($i = 0; $i < 32; ++$i) {
        $d |= ParagonIE_Sodium_Core_Util::chrToInt($str[$i]);
    }
    return ((($d - 1) >> 31) & 1) === 1;
}