WordPress at a glance
function is not described

ParagonIE_Sodium_Core32_Curve25519_Fe::fromIntArray() public WP 1.0

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

No Hooks.

Return

self. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core32_Curve25519_Fe::fromIntArray( $array, $save_indexes );
$array (required)
-
$save_indexes *(true false)*

Code of ParagonIE_Sodium_Core32_Curve25519_Fe::fromIntArray() WP 5.7

<?php
public static function fromIntArray($array, $save_indexes = null)
{
    $count = count($array);
    if ($save_indexes) {
        $keys = array_keys($array);
    } else {
        $keys = range(0, $count - 1);
    }
    $array = array_values($array);
    $set = array();
    /** @var int $i */
    /** @var int $v */
    foreach ($array as $i => $v) {
        $set[$i] = ParagonIE_Sodium_Core32_Int32::fromInt($v);
    }

    $obj = new ParagonIE_Sodium_Core32_Curve25519_Fe();
    if ($save_indexes) {
        for ($i = 0; $i < $count; ++$i) {
            $set[$i]->overflow = 0;
            $obj->offsetSet($keys[$i], $set[$i]);
        }
    } else {
        for ($i = 0; $i < $count; ++$i) {
            $set[$i]->overflow = 0;
            $obj->offsetSet($i, $set[$i]);
        }
    }
    return $obj;
}