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
@@ -144,6 +144,8 @@
|
||||
#define MICROPY_PY_TIME_INCLUDEFILE "ports/unix/modtime.c"
|
||||
#define MICROPY_PY_ERRNO (1)
|
||||
#define MICROPY_PY_UCTYPES (1)
|
||||
#define MICROPY_PY_DEFLATE (1)
|
||||
#define MICROPY_PY_DEFLATE_COMPRESS (1)
|
||||
#define MICROPY_PY_JSON (1)
|
||||
#define MICROPY_PY_RE (1)
|
||||
#define MICROPY_PY_HEAPQ (1)
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\modasyncio.c" />
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\modbinascii.c" />
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\moductypes.c" />
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\moddeflate.c" />
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\modhashlib.c" />
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\modheapq.c" />
|
||||
<PyExtModSource Include="$(PyBaseDir)extmod\modjson.c" />
|
||||
|
||||
Reference in New Issue
Block a user