Home | Trees | Indices | Help |
---|
|
object --+ | Encoder
Given an iterator of bytes, returns an iterator of integer codepoints, suitable for use by Decoder. The core of the "compression" side of lzw compression/decompression.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
When the encoding codebook grows larger than max_code_size, the Encoder will clear its codebook and emit a CLEAR_CODE
|
Given an iterator over bytes, yields the corresponding stream of codepoints. Will clear the codes at the end of the stream. >>> import lzw >>> enc = lzw.Encoder() >>> [ cp for cp in enc.encode("gabba gabba yo gabba") ] [103, 97, 98, 98, 97, 32, 258, 260, 262, 121, 111, 263, 259, 261, 256] |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Apr 20 15:25:48 2010 | http://epydoc.sourceforge.net |