8ctopus/unsigned-int
最新稳定版本:1.0.3
Composer 安装命令:
composer require 8ctopus/unsigned-int
包简介
Convert signed integers to unsigned
README 文档
README
A php library to convert signed integers to unsigned int.
php does not implement unsigned integers natively which can cause some headaches when unsigned are required. This library hopes to make your life a lot easier.
install and demo
composer require 8ctopus/unsigned-int
use Oct8pus\Unsigned\UInt8; use Oct8pus\Unsigned\UInt16; use Oct8pus\Unsigned\UInt32; require_once './vendor/autoload.php'; echo "convert signed int 8 to unsigned int 8\n"; echo (new UInt8(127)); echo (new UInt8(-128)); $uint8 = new UInt8(); $uint8->toUnsigned(127);
convert signed int 8 to unsigned int 8
127 > 0x7F (127)
-128 > 0x80 (128)
tests
composer test
clean code
composer fix(-risky)
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-14