ParagonIE_Sodium_Core32_BLAKE2b::SplFixedArrayToString

Advertisement

Summery Summery

Convert an SplFixedArray of integers into a string

Syntax Syntax

ParagonIE_Sodium_Core32_BLAKE2b::SplFixedArrayToString( SplFixedArray $a )

Parameters Parameters

$a

(Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Core32/BLAKE2b.php

    public static function SplFixedArrayToString(SplFixedArray $a)
    {
        /**
         * @var array<int, string|int>
         */
        $arr = $a->toArray();
        $c = $a->count();
        array_unshift($arr, str_repeat('C', $c));
        return (string) (call_user_func_array('pack', $arr));
    }

Advertisement

Advertisement

Leave a Reply