X7ROOT File Manager
Current Path:
/home/notabjze/just4dastreets.com/libraries/vendor/spomky-labs/cbor-php/src
home
/
notabjze
/
just4dastreets.com
/
libraries
/
vendor
/
spomky-labs
/
cbor-php
/
src
/
ðŸ“
..
📄
AbstractCBORObject.php
(971 B)
📄
ByteStringObject.php
(1.25 KB)
📄
ByteStringWithChunkObject.php
(1.84 KB)
📄
CBORObject.php
(522 B)
📄
Decoder.php
(5.66 KB)
📄
InfiniteListObject.php
(1.62 KB)
📄
InfiniteMapObject.php
(1.79 KB)
📄
LengthCalculator.php
(1.85 KB)
📄
ListObject.php
(2.33 KB)
📄
MapItem.php
(691 B)
📄
MapObject.php
(2.23 KB)
ðŸ“
OtherObject
📄
OtherObject.php
(1021 B)
📄
SignedIntegerObject.php
(4.85 KB)
📄
Stream.php
(319 B)
📄
StringStream.php
(1.44 KB)
ðŸ“
Tag
📄
TagObject.php
(1.19 KB)
📄
TextStringObject.php
(1.25 KB)
📄
TextStringWithChunkObject.php
(1.83 KB)
📄
UnsignedIntegerObject.php
(4.86 KB)
📄
Utils.php
(1.08 KB)
Editing: Utils.php
<?php declare(strict_types=1); /* * The MIT License (MIT) * * Copyright (c) 2018-2020 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace CBOR; use Brick\Math\BigInteger; /** * @internal */ abstract class Utils { public static function binToInt(string $value): int { return self::binToBigInteger($value)->toInt(); } public static function binToBigInteger(string $value): BigInteger { return self::hexToBigInteger(bin2hex($value)); } public static function hexToInt(string $value): int { return self::hexToBigInteger($value)->toInt(); } public static function hexToBigInteger(string $value): BigInteger { return BigInteger::fromBase($value, 16); } public static function hexToString(string $value): string { return BigInteger::fromBase(bin2hex($value), 16)->toBase(10); } public static function intToHex(int $value): string { return BigInteger::of($value)->toBase(16); } }
Upload File
Create Folder