var searchIndex = {}; searchIndex["zstd"] = {"doc":"Rust binding to the [zstd library][zstd].","items":[[3,"AutoFinishEncoder","zstd","A wrapper around an `Encoder<W>` that finishes the stream on drop.",null,null],[3,"Encoder","","An encoder that compress and forward data to another writer.",null,null],[3,"Decoder","","A decoder that decompress input data from another `Read`.",null,null],[5,"decode_all","","Decompress the given data as if using a `Decoder`.",null,null],[5,"encode_all","","Compress all the given data as if using an `Encoder`.",null,null],[11,"drop","","",0,null],[11,"write","","",0,null],[11,"flush","","",0,null],[11,"new","","Creates a new encoder.",1,{"inputs":[{"name":"w"},{"name":"i32"}],"output":{"name":"result"}}],[11,"with_dictionary","","Creates a new encoder, using an existing dictionary.",1,null],[11,"auto_finish","","Returns an encoder that will finish the stream on drop.",1,null],[11,"on_finish","","Returns an encoder that will finish the stream on drop.",1,null],[11,"finish","","Finishes the stream. You *need* to call this after writing your stuff.",1,null],[11,"recommended_input_size","","Return a recommendation for the size of data to write at once.",1,{"inputs":[],"output":{"name":"usize"}}],[11,"write","","",1,null],[11,"flush","","",1,null],[11,"new","","Creates a new decoder.",2,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"with_dictionary","","Creates a new decoder, using an existing dictionary.",2,null],[11,"recommended_output_size","","Recommendation for the size of the output buffer.",2,{"inputs":[],"output":{"name":"usize"}}],[11,"finish","","Return the inner `Read`.",2,null],[11,"read","","",2,null],[0,"block","","Methods to compress and decompress individual blocks.",null,null],[3,"Compressor","zstd::block","Allows to compress multiple blocks of data, re-using the context.",null,null],[3,"Decompressor","","Allows to decompress multiple blocks of data, re-using the context.",null,null],[5,"compress_to_buffer","","Compresses a single block of data to the given destination buffer.",null,null],[5,"compress","","Compresses a block of data and returns the compressed result.",null,null],[5,"decompress_to_buffer","","Deompress a single block of data to the given destination buffer.",null,null],[5,"decompress","","Decompresses a block of data and returns the decompressed result.",null,null],[11,"default","","",3,{"inputs":[],"output":{"name":"compressor"}}],[11,"new","","Creates a new zstd compressor",3,{"inputs":[],"output":{"name":"self"}}],[11,"with_dict","","Creates a new zstd compressor, using the given dictionary.",3,{"inputs":[{"name":"vec"}],"output":{"name":"self"}}],[11,"compress_to_buffer","","Compress a single block of data to the given destination buffer.",3,null],[11,"compress","","Compresses a block of data and returns the compressed result.",3,null],[11,"default","","",4,{"inputs":[],"output":{"name":"decompressor"}}],[11,"new","","Creates a new zstd decompressor.",4,{"inputs":[],"output":{"name":"self"}}],[11,"with_dict","","Creates a new zstd decompressor, using the given dictionary.",4,{"inputs":[{"name":"vec"}],"output":{"name":"self"}}],[11,"decompress_to_buffer","","Deompress a single block of data to the given destination buffer.",4,null],[11,"decompress","","Decompress a block of data, and return the decompressed result in a `Vec<u8>`.",4,null],[0,"dict","zstd","Train a dictionary from various sources.",null,null],[5,"from_continuous","zstd::dict","Train a dictionary from a big continuous chunk of data.",null,null],[5,"from_samples","","Train a dictionary from multiple samples.",null,null],[5,"from_files","","Train a dict from a list of files.",null,null]],"paths":[[3,"AutoFinishEncoder"],[3,"Encoder"],[3,"Decoder"],[3,"Compressor"],[3,"Decompressor"]]}; initSearch(searchIndex);