charcoal-dev/gmp-adapter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

charcoal-dev/gmp-adapter

最新稳定版本:0.1.3

Composer 安装命令:

composer require charcoal-dev/gmp-adapter

包简介

Provides BigInteger class to Charcoal Apps

README 文档

README

MIT License

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:

https://charcoal.dev/lib/gmp-adapter

统计信息

  • 总下载量: 7.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-11