Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LZSS Swift

A Swift implementation of the LZSS (Lempel-Ziv-Storer-Szymanski) compression algorithm.

Features

  • Pure Swift implementation.
  • Simple API for compression and decompression.
  • Lightweight and dependency-free.

Installation

Swift Package Manager

Add the following to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/p1atdev/LZSS.git", from: "1.0.0")
]

Usage

Compression

import LZSS

let inputData = "LZSS compression algorithm implementation in Swift".data(using: .utf8)!
let compressedData = LZSS.compress(inputData) // or LZSSFast.compress(inputData) for faster compression

Decompression

import LZSS

let decompressedData = LZSS.decompress(compressedData)
let resultString = String(data: decompressedData, encoding: .utf8) // or LZSSFast.decompress(compressedData) for faster decompression

License

This project is released into the public domain under the Unlicense.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages