Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create a relatively easy to use API #1

@nemequ

Description

@nemequ

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 fread and fwrite and 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions