Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
ramsey /
uuid /
src /
Converter /
Number /
Delete
Unzip
Name
Size
Permission
Date
Action
BigNumberConverter.php
1.62
KB
-rw-r--r--
2018-07-19 09:00
DegradedNumberConverter.php
1.94
KB
-rw-r--r--
2018-07-19 09:00
Save
Rename
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT * @link https://benramsey.com/projects/ramsey-uuid/ Documentation * @link https://packagist.org/packages/ramsey/uuid Packagist * @link https://github.com/ramsey/uuid GitHub */ namespace Ramsey\Uuid\Converter\Number; use Moontoast\Math\BigNumber; use Ramsey\Uuid\Converter\NumberConverterInterface; /** * BigNumberConverter converts UUIDs from hexadecimal characters into * moontoast/math `BigNumber` representations of integers and vice versa */ class BigNumberConverter implements NumberConverterInterface { /** * Converts a hexadecimal number into a `Moontoast\Math\BigNumber` representation * * @param string $hex The hexadecimal string representation to convert * @return BigNumber */ public function fromHex($hex) { $number = BigNumber::convertToBase10($hex, 16); return new BigNumber($number); } /** * Converts an integer or `Moontoast\Math\BigNumber` integer representation * into a hexadecimal string representation * * @param int|string|BigNumber $integer An integer or `Moontoast\Math\BigNumber` * @return string Hexadecimal string */ public function toHex($integer) { if (!$integer instanceof BigNumber) { $integer = new BigNumber($integer); } return BigNumber::convertFromBase10($integer, 16); } }