ndspy.lz10
: LZ10 Compression¶
ndspy.lz10
provides functions for compression and decompression in the
LZ10 compression format used in some games.
See also
This module also includes a command-line interface.
- ndspy.lz10.compress(data)¶
Compress data in LZ10 format. This is the inverse of
decompress()
.
- ndspy.lz10.compressFromFile(filePath)¶
Load a filesystem file, and compress its contents. This is the inverse of
decompressToFile()
, and is a convenience function.
- ndspy.lz10.compressToFile(data, filePath)¶
Compress data in LZ10 format, and save it to a filesystem file. This is the inverse of
decompressFromFile()
, and is a convenience function.
- ndspy.lz10.decompress(data)¶
Decompress data that was compressed using LZ10. This is the inverse of
compress()
.
- ndspy.lz10.decompressFromFile(filePath)¶
Load a LZ10-compressed filesystem file, and decompress it. This is the inverse of
compressToFile()
, and is a convenience function.
- ndspy.lz10.decompressToFile(data, filePath)¶
Decompress data that was compressed using LZ10, and save it to a filesystem file. This is the inverse of
compressFromFile()
, and is a convenience function.
- ndspy.lz10.main([args])¶
This is the main function for this module’s command-line interface. This allows you to invoke the CLI programmatically, if you would like.