Syntax Syntax
Parameters Parameters
- $offset
-
(Required)
- $value
-
(Required)
Return Return
(void)
Source Source
File: wp-includes/sodium_compat/src/Core32/ChaCha20/Ctx.php
public function offsetSet($offset, $value) { if (!is_int($offset)) { throw new InvalidArgumentException('Expected an integer'); } if ($value instanceof ParagonIE_Sodium_Core32_Int32) { /* } elseif (is_int($value)) { $value = ParagonIE_Sodium_Core32_Int32::fromInt($value); */ } else { throw new InvalidArgumentException('Expected an integer'); } $this->container[$offset] = $value; }