Registry / serialization / pierrec-lz4

pierrec-lz4

JSON →
library2.6.1+incompatiblegogounverified

Package lz4 implements reading and writing lz4 compressed data (a frame), as specified in the LZ4 streaming format.

go get github.com/pierrec/lz4
INSTALL
IMPORT
SIG · PIERREC-LZ4
P
pierrec-lz4
serializationgov2.6.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lz4
github.com/pierrec/lz4

Compress a string using the LZ4 frame format.

package main import ( "bytes" "fmt" "github.com/pierrec/lz4" ) func main() { var buf bytes.Buffer w := lz4.NewWriter(&buf) w.Write([]byte("Hello, world!")) w.Close() fmt.Println("Compressed size:", buf.Len()) }
Debug
Known issues
gotchaThe block-level compression functions are low-level and should not be used directly.
fix
Use the frame-level NewReader/NewWriter for most use cases.
affects: *
Upgrade
Version history
2.6.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
6
Resources
pierrec-lz4 — go get pierrec-lz4 · libregistry