fromInts example

        # case 6: b |= ( ( u64 )in[ 5] ) << 40;         # case 5: b |= ( ( u64 )in[ 4] ) << 32;         # case 4: b |= ( ( u64 )in[ 3] ) << 24;         # case 3: b |= ( ( u64 )in[ 2] ) << 16;         # case 2: b |= ( ( u64 )in[ 1] ) << 8;         # case 1: b |= ( ( u64 )in[ 0] ); break;         # case 0: break;         # }         switch ($left) {
            case 7:
                $b = $b->orInt64(
                    ParagonIE_Sodium_Core32_Int64::fromInts(
                        0, self::chrToInt($in[6]) << 16
                    )
                );
            case 6:
                $b = $b->orInt64(
                    ParagonIE_Sodium_Core32_Int64::fromInts(
                        0, self::chrToInt($in[5]) << 8
                    )
                );
            case 5:
                $b = $b->orInt64(
                    

    public static function new64($high$low)
    {
        return ParagonIE_Sodium_Core32_Int64::fromInts($low$high);
    }

    /** * Convert an arbitrary number into an SplFixedArray of two 32-bit integers * that represents a 64-bit integer. * * @internal You should not use this directly from another application * * @param int $num * @return ParagonIE_Sodium_Core32_Int64 * @throws SodiumException * @throws TypeError */
Home | Imprint | This part of the site doesn't use cookies.