WordPress at a glance
function is not described

ParagonIE_Sodium_Core32_Int32::fromReverseString() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core32_Int32{}

No Hooks.

Return

self. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core32_Int32::fromReverseString( $string );
$string(string) (required)
-

Code of ParagonIE_Sodium_Core32_Int32::fromReverseString() WP 5.7

<?php
public static function fromReverseString($string)
{
    ParagonIE_Sodium_Core32_Util::declareScalarType($string, 'string', 1);
    $string = (string) $string;
    if (ParagonIE_Sodium_Core32_Util::strlen($string) !== 4) {
        throw new RangeException(
            'String must be 4 bytes; ' . ParagonIE_Sodium_Core32_Util::strlen($string) . ' given.'
        );
    }
    $return = new ParagonIE_Sodium_Core32_Int32();

    $return->limbs[0]  = (int) ((ParagonIE_Sodium_Core32_Util::chrToInt($string[3]) & 0xff) << 8);
    $return->limbs[0] |= (ParagonIE_Sodium_Core32_Util::chrToInt($string[2]) & 0xff);
    $return->limbs[1]  = (int) ((ParagonIE_Sodium_Core32_Util::chrToInt($string[1]) & 0xff) << 8);
    $return->limbs[1] |= (ParagonIE_Sodium_Core32_Util::chrToInt($string[0]) & 0xff);
    return $return;
}