ParagonIE_Sodium_Core32_Int32::fromInt

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Int32::fromInt( int $signed )

Parameters Parameters

$signed

(Required)

Return Return

(self)

Source Source

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

    public static function fromInt($signed)
    {
        ParagonIE_Sodium_Core32_Util::declareScalarType($signed, 'int', 1);;
        /** @var int $signed */
        $signed = (int) $signed;

        return new ParagonIE_Sodium_Core32_Int32(
            array(
                (int) (($signed >> 16) & 0xffff),
                (int) ($signed & 0xffff)
            )
        );
    }

Advertisement

Advertisement

Leave a Reply