extmod/moddeflate: Add deflate module providing the DeflateIO class.
This provides similar functionality to the former zlib.DecompIO and especially CPython's gzip.GzipFile for both compression and decompression. This class can be used directly, and also can be used from Python to implement (via io.BytesIO) zlib.decompress and zlib.compress, as well as gzip.GzipFile. Enable/disable this on all ports/boards that zlib was previously configured for. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
e6c290c3d1
commit
3533924c36
@@ -91,6 +91,7 @@
|
||||
#define MICROPY_PY_UCTYPES (1)
|
||||
#define MICROPY_PY_HEAPQ (1)
|
||||
#define MICROPY_PY_RANDOM (1)
|
||||
#define MICROPY_PY_DEFLATE (1)
|
||||
#define MICROPY_PY_ASYNCIO (1)
|
||||
#define MICROPY_PY_MACHINE_RTC (1)
|
||||
#ifndef MICROPY_PY_MACHINE_ADC
|
||||
|
||||
Reference in New Issue
Block a user