WordPress at a glance
function is not described

ParagonIE_Sodium_Core32_Int32::addInt() public WP 1.0

Adds a normal integer to an int32 object

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

No Hooks.

Return

ParagonIE_Sodium_Core32_Int32. Null. Nothing.

Usage

$ParagonIE_Sodium_Core32_Int32 = new ParagonIE_Sodium_Core32_Int32();
$ParagonIE_Sodium_Core32_Int32->addInt( $int );
$int(int) (required)
-

Code of ParagonIE_Sodium_Core32_Int32::addInt() WP 5.7

<?php
public function addInt($int)
{
    ParagonIE_Sodium_Core32_Util::declareScalarType($int, 'int', 1);
    /** @var int $int */
    $int = (int) $int;

    $int = (int) $int;

    $i0 = $this->limbs[0];
    $i1 = $this->limbs[1];

    $r1 = $i1 + ($int & 0xffff);
    $carry = $r1 >> 16;

    $r0 = $i0 + (($int >> 16) & 0xffff) + $carry;
    $carry = $r0 >> 16;
    $r0 &= 0xffff;
    $r1 &= 0xffff;
    $return = new ParagonIE_Sodium_Core32_Int32(
        array($r0, $r1)
    );
    $return->overflow = $carry;
    $return->unsignedInt = $this->unsignedInt;
    return $return;
}