|
@@ -1,6 +1,11 @@
|
|
|
# lz4 : LZ4 compression in pure Go
|
|
# lz4 : LZ4 compression in pure Go
|
|
|
|
|
|
|
|
-## Overview [](https://godoc.org/github.com/pierrec/lz4) [](https://travis-ci.org/pierrec/lz4) [](https://goreportcard.com/report/github.com/pierrec/lz4)
|
|
|
|
|
|
|
+[](https://godoc.org/github.com/pierrec/lz4)
|
|
|
|
|
+[](https://travis-ci.org/pierrec/lz4)
|
|
|
|
|
+[](https://goreportcard.com/report/github.com/pierrec/lz4)
|
|
|
|
|
+[](https://github.com/pierrec/lz4/tags)
|
|
|
|
|
+
|
|
|
|
|
+## Overview
|
|
|
|
|
|
|
|
This package provides a streaming interface to [LZ4 data streams](http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html) as well as low level compress and uncompress functions for LZ4 data blocks.
|
|
This package provides a streaming interface to [LZ4 data streams](http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html) as well as low level compress and uncompress functions for LZ4 data blocks.
|
|
|
The implementation is based on the reference C [one](https://github.com/lz4/lz4).
|
|
The implementation is based on the reference C [one](https://github.com/lz4/lz4).
|
|
@@ -49,7 +54,7 @@ uncompress [arguments] [<file name> ...]
|
|
|
```
|
|
```
|
|
|
// Compress and uncompress an input string.
|
|
// Compress and uncompress an input string.
|
|
|
s := "hello world"
|
|
s := "hello world"
|
|
|
-r := bytes.NewReader([]byte(s))
|
|
|
|
|
|
|
+r := strings.NewReader(s)
|
|
|
|
|
|
|
|
// The pipe will uncompress the data from the writer.
|
|
// The pipe will uncompress the data from the writer.
|
|
|
pr, pw := io.Pipe()
|
|
pr, pw := io.Pipe()
|