charcoal-dev/gmp-adapter
最新稳定版本:0.1.3
Composer 安装命令:
composer require charcoal-dev/gmp-adapter
包简介
Provides BigInteger class to Charcoal Apps
README 文档
README
The GMP lib is a thin, pragmatic wrapper around PHP’s ext-gmp, giving you a familiar BigInteger-style API plus clean byte conversions. It standardizes import/export via gmp_import()/gmp_export() with explicit ByteOrder handling (big/little), fixed-width padding, and constant-time equals() for sensitive paths. The companion GmpByte enum captures common widths (8/16/32/64) and provides tight pack/unpack helpers for U64 using GMP, mirroring the Buffers’ U8/U16/U32 routines. Together they let you move between integers and raw bytes without surprises—no hidden endianness, no accidental truncation, and no dependency leakage into the Buffers layer.
For detailed information, guidance, and setup instructions regarding this library, please refer to our official documentation website:
统计信息
- 总下载量: 7.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-11