Text
[ class tree: Text ] [ index: Text ] [ all elements ]

Class: Text_HuffmanExpand

Source Location: /Text_Huffman-0.2.0/HuffmanExpand.php

Class Overview

Text_Huffman
   |
   --Text_HuffmanExpand

Huffman Expansion Class


Variables

Methods


Inherited Variables

Inherited Methods

Class: Text_Huffman

Text_Huffman::__construct()
Constructor
Text_Huffman::setFiles()
setFiles() is called to specify the paths to the input and output files.
Text_Huffman::_bitRead()
Bit-reading with a carrier: input 8 bits at a time.
Text_Huffman::_bitRead1()
Read 1 bit.
Text_Huffman::_bitWrite()
Bit-writing with a carrier: output every 8 bits
Text_Huffman::_bitWriteEnd()
Finalizing bit-writing, writing the data.
Text_Huffman::_decBinDig()
Returns the binary representation of $x as a string, over $n digits, with as many initial zeros as necessary to cover that.

Class Details

[line 37]
Huffman Expansion Class


[ Top ]


Class Variables

$_ofsize =

[line 44]

Size of the output file, in bytes
  • Access: protected

Type:   mixed


[ Top ]

$_ttlnodes =

[line 50]

For use in Huffman Tree reconstruction
  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 60]

Text_HuffmanExpand __construct( )

Constructor
  • Access: public

Overrides Text_Huffman::__construct() (Constructor)
[ Top ]

expand   [line 76]

void expand( )

Perform expansion.
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:54:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.