MAGIC
MAGIC
String to tell if file is a bz2 file
This class is used to allow one to iterate through a Bzip2 file.
The main advantage of using this class over the built-in bzip is that it can "remember" where it left off between serializations. So can continue where left off between web invocations. This is used in doing archive crawls of wiki dumps to allow the name server picks up where it left off.
packLeft(\seekquarry\yioop\library\string& $block, \seekquarry\yioop\library\int& $bits, string $bytes, integer $num_extra_bits)
Computes a new bzip2 block portions and bits left over after adding $bytes to the passed $block.
\seekquarry\yioop\library\string& | $block | the block to add to |
\seekquarry\yioop\library\int& | $bits | used to hold bits left over |
string | $bytes | what to add to the bzip block |
integer | $num_extra_bits | how many extra bits there are |