定制 ant-hill/bitmap 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ant-hill/bitmap

Composer 安装命令:

composer require ant-hill/bitmap

包简介

README 文档

README

Simple library allows add, delete, check bits by offset. In offset could be in range of 0 to PHP_INT_MAX

Simple usage:

    $bitMapOffset = new BitMapOffset(4,/* Chunk size, max size for correct work is (PHP_INT_SIZE*8)-1 */);
    $bitMapArray =  new BitMapArray($bitMapOffset,[] /* BitMap Array */);

    $bitMapArray->add(3); // Add set 3rd bit at 1
    $bitMapArray->has(3); // Check for 3rd bit is set
    $bitMapArray->del(3); // Delete 3rd bit if exists

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-08-30