diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-05-13 15:42:22 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-05-13 15:42:22 +0800 |
| commit | afaa25b9bd5d9e8c2e0a410eede6f30680c35d72 (patch) | |
| tree | ad1dc5ed6700da335049d6ca379bc70fdb10b88b /na/include | |
| parent | c1ecb1777ac584e76a78ca41be1dcbf6d5fd9aa5 (diff) | |
| download | lume-afaa25b9bd5d9e8c2e0a410eede6f30680c35d72.tar.gz lume-afaa25b9bd5d9e8c2e0a410eede6f30680c35d72.tar.xz | |
feat: add LZ4 decompressor implementation and update linker script
Diffstat (limited to 'na/include')
| -rw-r--r-- | na/include/lume/decompress.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/na/include/lume/decompress.h b/na/include/lume/decompress.h new file mode 100644 index 0000000..04082a9 --- /dev/null +++ b/na/include/lume/decompress.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* Copyright (C) 2026 Richard Qin */ + +#pragma once + +#include <lume/types.h> + +/* + * LZ4 block decompressor (no frame headers). Returns bytes written or -1. + */ +int lz4_decompress(const uint8* src, uint32 src_len, uint8* dst, uint32 dst_cap); |
