No description
Find a file
2025-11-08 13:17:28 -05:00
src openArray overloads and extra documentation. 2025-10-18 15:18:59 -04:00
.gitignore Updated case style 2025-10-18 12:09:35 -04:00
LICENSE Create LICENSE 2025-10-18 13:13:43 -04:00
nimlzf.nimble Initial upload 2025-10-18 10:24:48 -04:00
README.md Update README.md 2025-11-08 13:17:28 -05:00

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.