Skip to content

Anuken/nimlzf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

liblzf wrapper for Nim

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors