2017 © Pedro Peláez
 

library bitmap

image

ant-hill/bitmap

  • Wednesday, August 30, 2017
  • by ant-hill
  • Repository
  • 1 Watchers
  • 0 Stars
  • 395 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 11 % Grown

The README.md

bitmap

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

Simple usage:, (*2)


$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

The Versions

30/08 2017

dev-master

9999999-dev

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4

 

The Development Requires

by Ivan Pyankov