nimlzf
Nim wrapper of the liblzf C library.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install nimlzf
choosenim install nimlzf
git clone https://github.com/Anuken/nimlzf
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nimlzf | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/Anuken/nimlzf |
|---|---|
| Homepage | https://github.com/Anuken/nimlzf |
| Registry Source | nimble_official |
README
nimlzf
A simple wrapper for the liblzf compression library.
API:
#low-level pointer-based procs:
proc lzfCompress*(inData: pointer, inLen: int, outData: pointer, outLen: int): int
proc lzfDecompress*(inData: pointer, inLen: int, outData: pointer, outLen: int): int
#higher-level string-based procs:
proc lzfCompress[T: byte | char](data: openArray[T]): string
proc lzfDecompress[T: byte | char](data: openArray[T], decompressedLen: int): string
Note that lzfCompress will fail (throw an IOError) if the data is too short and/or cannot be compressed below its original size.