var searchIndex = {}; searchIndex["lzw"] = {"doc":"","items":[[3,"Decoder","lzw","Decodes a lzw compressed stream (this algorithm is used for GIF files).\nThe maximum supported code length is 16 bits. The decoder assumes two\nspecial code word to be present in the stream:",null,null],[3,"DecoderEarlyChange","","Decodes a lzw compressed stream using an “early change” algorithm (used in TIFF files).\nThe maximum supported code length is 16 bits. The decoder assumes two\nspecial code word to be present in the stream:",null,null],[3,"Encoder","","LZW encoder",null,null],[3,"LsbReader","","Reads bits from a byte stream, LSB first.",null,null],[3,"LsbWriter","","Writes bits to a byte stream, LSB first.",null,null],[3,"MsbReader","","Reads bits from a byte stream, MSB first.",null,null],[3,"MsbWriter","","Writes bits to a byte stream, MSB first.",null,null],[5,"encode","","Convenience function that reads and compresses all bytes from `R`.",null,{"inputs":[{"name":"r"},{"name":"w"},{"name":"u8"}],"output":{"name":"result"}}],[11,"fmt","","",0,null],[11,"new","","Creates a new LZW decoder.",0,{"inputs":[{"name":"r"},{"name":"u8"}],"output":{"name":"decoder"}}],[11,"decode_bytes","","Tries to obtain and decode a code word from `bytes`.",0,null],[11,"fmt","","",1,null],[11,"new","","Creates a new LZW decoder.",1,{"inputs":[{"name":"r"},{"name":"u8"}],"output":{"name":"decoderearlychange"}}],[11,"decode_bytes","","Tries to obtain and decode a code word from `bytes`.",1,null],[11,"new","","Creates a new lzw encoder",2,{"inputs":[{"name":"w"},{"name":"u8"}],"output":{"name":"result"}}],[11,"encode_bytes","","Encodes `bytes`",2,null],[11,"fmt","","",3,null],[11,"new","","Creates a new bit reader",3,{"inputs":[],"output":{"name":"lsbreader"}}],[11,"fmt","","",4,null],[11,"new","","Creates a new bit reader",4,{"inputs":[],"output":{"name":"msbreader"}}],[11,"read_bits","","",3,null],[11,"read_bits","","",4,null],[11,"new","","Creates a new bit reader",5,{"inputs":[{"name":"w"}],"output":{"name":"lsbwriter"}}],[11,"write","","",5,null],[11,"flush","","",5,null],[11,"new","","Creates a new bit reader",6,{"inputs":[{"name":"w"}],"output":{"name":"msbwriter"}}],[11,"write","","",6,null],[11,"flush","","",6,null],[11,"write_bits","","",5,null],[11,"write_bits","","",6,null],[8,"BitReader","","Bit reader",null,null],[10,"read_bits","","Returns the next `n` bits.",7,null],[8,"BitWriter","","Bit writer",null,null],[10,"write_bits","","Writes the next `n` bits.",8,null]],"paths":[[3,"Decoder"],[3,"DecoderEarlyChange"],[3,"Encoder"],[3,"LsbReader"],[3,"MsbReader"],[3,"LsbWriter"],[3,"MsbWriter"],[8,"BitReader"],[8,"BitWriter"]]}; initSearch(searchIndex);