ParagonIE_Sodium_Core_ChaCha20_Ctx::offsetSet

Advertisement

Syntax Syntax

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

Parameters Parameters

$offset

(Required)

$value

(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