ParagonIE_Sodium_Core_BLAKE2b::SplFixedArrayToString

Advertisement

Summery Summery

Convert an SplFixedArray of integers into a string

Syntax Syntax

ParagonIE_Sodium_Core_BLAKE2b::SplFixedArrayToString( SplFixedArray $a )

Parameters Parameters

$a

(SplFixedArray) (Required)

Return Return

(string)

Source Source

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

    public static function SplFixedArrayToString(SplFixedArray $a)
    {
        /**
         * @var array<int, int|string> $arr
         */
        $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

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