ParagonIE_Sodium_Core_ChaCha20_Ctx::offsetSet

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core_ChaCha20_Ctx::offsetSet( int $offset, int $value )

Parameters Parameters

$offset

(int) (Required)

$value

(int) (Required)

Return Return

(void)

Source Source

File: wp-includes/sodium_compat/src/Core/ChaCha20/Ctx.php

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

Advertisement

Advertisement

Leave a Reply

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