ParagonIE_Sodium_Core32_Int64::fromInts

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Int64::fromInts( int $low, int $high )

Parameters Parameters

$low

(Required)

$high

(Required)

Return Return

(self)

Source Source

File: wp-includes/sodium_compat/src/Core32/Int64.php

    public static function fromInts($low, $high)
    {
        ParagonIE_Sodium_Core32_Util::declareScalarType($low, 'int', 1);
        ParagonIE_Sodium_Core32_Util::declareScalarType($high, 'int', 2);

        $high = (int) $high;
        $low = (int) $low;
        return new ParagonIE_Sodium_Core32_Int64(
            array(
                (int) (($high >> 16) & 0xffff),
                (int) ($high & 0xffff),
                (int) (($low >> 16) & 0xffff),
                (int) ($low & 0xffff)
            )
        );
    }

Advertisement

Advertisement

Leave a Reply