Login   Register  
PHP Classes
elePHPant
Icontem

bitvec: Manipulate arrays of bits with SplFixedArray class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of CPK Smithies
Name: CPK Smithies <e-mail contact>
Packages: 6 Browse all classes by CPK Smithies Browse all classes by
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Age: 59
All time rank: 167773 in United Kingdom United Kingdom
Week rank: 593 Up21 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 4x


  Detailed description   Download Download .zip .tar.gz  
This package can manipulate arrays of bits with SplFixedArray class.

It provides an array interface to store a given fixed number of bits.

The array of bits can be traversed with an iterator interface that allows accessing the bits with regular functions for accessing arrays.

  Classes of CPK Smithies  >  bitvec  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: bitvec
Base name: bitvec
Description: Manipulate arrays of bits with SplFixedArray class
Version: 1.0
PHP version: 5.0
License: Public Domain
All time users: 165 users
All time rank: 7214
Week users: 0 users
Week rank: 2192 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
January 2013
Number 5

Prize: One downloadable copy of Komodo IDE
The regular arrays in PHP are implemented internally as hash tables.

This means that the access to any array element access requires the computation of a hash value and the eventual traversal of a linked list of array elements.

For arrays with entries indexed by their numeric position, it is faster to use the SplFixedArray class.

This class uses the SplFixedArray class to provide a faster interface to access arrays of bits.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagetests (2 files)
Plain text file bitvec.php Class Bitvec class source
Accessible without login Plain text file LICENCE Doc. Licence terms
Accessible without login Plain text file phpdoc.dist.xml Data Configuration for generating the HTML documentation
Accessible without login Plain text file phpunit.xml.dist Data Unit test configuration
Accessible without login Plain text file README Doc. About the package

  Files  /  Files folder image tests  
File Role Description
  Accessible without login Plain text file bvt1.php Test Unit tests on bitvec, demo prime generation
  Accessible without login Plain text file prime.php Example Demo using bitvec to generate primes using sieve techniques

Download Download all files: bitvec.tar.gz bitvec.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.