Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Oct 14, 2020
1 parent f6ad12b commit eeaf595
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,36 @@
`nimble install zippy`

Zippy is an in-progress and experimental implementation of [DEFLATE](https://tools.ietf.org/html/rfc1951) and [ZLIB](https://tools.ietf.org/html/rfc1950).

The goal of this library is to be a dependency-free Nim implementation that is as small and straightforward as possible while still focusing on performance.

**This library is an active project and not ready for production use.**

### Testing
`nimble test`

### Credits

This implementation has been greatly assisted by [zlib-inflate-simple](https://github.com/toomuchvoltage/zlib-inflate-simple) which is by far the smallest and most readable implemenation I've found.

# API: zippy

```nim
import zippy
```

## **func** uncompress

Uncompresses src into dst. This resizes dst as needed and starts writing at dst index 0.

```nim
func uncompress(src: seq[uint8]; dst: var seq[uint8]) {.raises: [ZippyException], tags: [].}
```

## **func** uncompress

Uncompresses src and returns the uncompressed data seq.

```nim
func uncompress(src: seq[uint8]): seq[uint8] {.inline, raises: [ZippyException], tags: [].}
```

0 comments on commit eeaf595

Please sign in to comment.