ParagonIE_Sodium_Core32_Curve25519_Fe::offsetSet

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_Curve25519_Fe::offsetSet( mixed $offset, mixed $value )

Parameters Parameters

$offset

(mixed) (Required)

$value

(mixed) (Required)

Return Return

(void)

Source Source

File: wp-includes/sodium_compat/src/Core32/Curve25519/Fe.php

    public function offsetSet($offset, $value)
    {
        if (!($value instanceof ParagonIE_Sodium_Core32_Int32)) {
            throw new InvalidArgumentException('Expected an instance of ParagonIE_Sodium_Core32_Int32');
        }
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            ParagonIE_Sodium_Core32_Util::declareScalarType($offset, 'int', 1);
            $this->container[(int) $offset] = $value;
        }
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.