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
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-08-30