ParagonIE_Sodium_Core32_Int64::fromInt

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Int64::fromInt( int $low )

Parameters Parameters

$low

(Required)

Return Return

(self)

Source Source

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

    public static function fromInt($low)
    {
        ParagonIE_Sodium_Core32_Util::declareScalarType($low, 'int', 1);
        $low = (int) $low;

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

Advertisement

Advertisement

Leave a Reply