Method Bz2.Deflate()->deflate()
- Method
deflate
stringdeflate(stringdata,int(0..2)|voidflush_mode)- Description
This function performs bzip2 style compression on a string
dataand returns the packed data. Streaming can be done by calling this function several times and concatenating the returned data.The optional argument
flush_modeshould be one of the following:Bz2.BZ_RUNRuns Bz2.Deflate->feed()
Bz2.BZ_FLUSHRuns Bz2.Deflate->read()
Bz2.BZ_FINISHRuns Bz2.Deflate->finish()
- See also