ParagonIE_Sodium_Core_Curve25519_Fe::offsetSet

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core_Curve25519_Fe::offsetSet( int|null $offset, int $value )

Parameters Parameters

$offset

(int|null) (Required)

$value

(int) (Required)

Return Return

(void)

Source Source

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

    public function offsetSet($offset, $value)
    {
        if (!is_int($value)) {
            throw new InvalidArgumentException('Expected an integer');
        }
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

Advertisement

Advertisement

Leave a Reply

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