mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
add lz4
module doc
This commit is contained in:
parent
61acaeafd3
commit
24d6b96f91
@ -3,7 +3,6 @@ icon: package
|
||||
label: gc
|
||||
---
|
||||
|
||||
|
||||
### `gc.collect()`
|
||||
|
||||
Invoke the garbage collector.
|
14
docs/modules/lz4.md
Normal file
14
docs/modules/lz4.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
icon: package
|
||||
label: lz4
|
||||
---
|
||||
|
||||
!!!
|
||||
This module is optional. Set option `PK_BUILD_MODULE_LZ4` to `ON` in your `CMakeLists.txt` to enable it.
|
||||
!!!
|
||||
|
||||
LZ4 compression and decompression.
|
||||
|
||||
#### Source code
|
||||
|
||||
:::code source="../../include/typings/lz4.pyi" :::
|
@ -5,7 +5,7 @@ def compress(data: bytes) -> bytes:
|
||||
"""
|
||||
|
||||
def decompress(data: bytes) -> bytes:
|
||||
"""Decompress the given LZ4 block format data produced by lz4.compress().
|
||||
"""Decompress the given LZ4 block format data produced by `lz4.compress()`.
|
||||
|
||||
This function is equivalent to `lz4.block.decompress` of https://pypi.org/project/lz4/.
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user