Israel Ors' HuffmanAlgorithm Documentation

HuffmanAlgorithm Methods

The methods of the HuffmanAlgorithm class are listed below. For a complete list of HuffmanAlgorithm class members, see the HuffmanAlgorithm Members topic.

Public Instance Methods

Dispose 
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
ExtractOverloaded. Build a frequency table and Huffman tree and extract the archive.
ExtractWithProgressOverloaded. Build a frequency table and Huffman tree and extract the archive. This function version, calls the PercentComplete event handler When anothe 1 percent compleated.
GetArchivingRatio This function calculates the the archiving ratio of a given archived stream.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
IsArchivedStream Checks if a data stream is archived.
IsPasswardProtectedStream Checks if a given archived data stream is password protected.
ShrinkOverloaded. Build a frequency table and Huffman tree and shrinking the stream data.
ShrinkWithProgressOverloaded. Build a frequency table and Huffman tree and shrinking the stream data. This function version, calls the PercentComplete event handler When anothe 1 percent compleated.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Private Instance Methods

BuildFrequencyTable Scanning for repeated bytes and according to them build frequency table.
GetComplementsBits Calculates the amount of complements bits, needed for the last byte writing.
PasswordGen This function takes a password cstring and converts it to a ushort number that's fit the header of a shrinked file.
SortArrays Bouble sort FrequencyTable( according frequency level ) and making the same changes on the corresponding array.
WriteHeader Write a header to the stream. This header is vital when extracting the data.

See Also

HuffmanAlgorithm Class | JadBenAutho.Tools Namespace