Skip to content

1.0.0: Stable algorithm API

Compare
Choose a tag to compare
@thekid thekid released this 26 Feb 10:27
· 18 commits to main since this release

This first release refactors the io.streams.compress.Algorithm interface into an abstract base class, stabilizing the algorithm API.

  • Made Algorithm implement the lang.Value interface, adding a string
    representation showing algorithm details
    (@thekid)
  • Added Algorithm::level() which will return the fastest, default and
    strongest levels supported for the predefined Compression::DEFAULT,
    Compression::FASTEST and Compression::STRONGEST.
    (@thekid)
  • Changed Algorithm::create() to accept either predefined constants for
    compression level or the level directly.
    (@thekid)