-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
It would be nice if there were an API for integrating LZOMA support into other software. There are three relatively common API styles:
- All-in-one compression is the easiest, but least flexible. See BZ2_bzBuffToBuffCompress/BZ2_bzBuffToBuffDecompress for an example. Obvious issues with large files.
- A callback based API is more powerful, but still pretty easy to implement. You provide callbacks that usually look a lot like
freadandfwriteand the compressor/decompressor uses them to process the entire set of data in one function call. - The most flexible, but hardest to create, is a streaming API like zlib has (and is copied by bzip2, liblzma, lzham, brotli, etc.).
Metadata
Metadata
Assignees
Labels
No labels