WordPress at a glance
function is not described

ParagonIE_Sodium_Core_BLAKE2b::store64() protected WP 1.0

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

No Hooks.

Return

null. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_BLAKE2b::store64( $x, $i, $u );
$x(SplFixedarray) (required)
-
$i(int) (required)
-
$u(SplFixedarray) (required)
-

Code of ParagonIE_Sodium_Core_BLAKE2b::store64() WP 5.7.1

<?php
protected static function store64(SplFixedArray $x, $i, SplFixedArray $u)
{
    $maxLength = $x->getSize() - 1;
    for ($j = 0; $j < 8; ++$j) {
        /*
           [0, 1, 2, 3, 4, 5, 6, 7]
                ... becomes ...
           [0, 0, 0, 0, 1, 1, 1, 1]
        */
        /** @var int $uIdx */
        $uIdx = ((7 - $j) & 4) >> 2;
        $x[$i]   = ((int) ($u[$uIdx]) & 0xff);
        if (++$i > $maxLength) {
            return;
        }
        /** @psalm-suppress MixedOperand */
        $u[$uIdx] >>= 8;
    }
}