go-lz4: github.com/bkaradzic/go-lz4 Index | Files | Directories

package lz4

import "github.com/bkaradzic/go-lz4"

Index

Package Files

reader.go writer.go

Constants

const (

    // MaxInputSize is the largest buffer than can be compressed in a single block
    MaxInputSize uint32 = 0x7E000000
)

Variables

var (
    // ErrCorrupt indicates the input was corrupt
    ErrCorrupt = errors.New("corrupt input")
)
var (
    // ErrTooLarge indicates the input buffer was too large
    ErrTooLarge = errors.New("input too large")
)

func CompressBound Uses

func CompressBound(isize int) int

CompressBound returns the maximum length of a lz4 block, given it's uncompressed length

func Decode Uses

func Decode(dst, src []byte) ([]byte, error)

Decode returns the decoded form of src. The returned slice may be a subslice of dst if it was large enough to hold the entire decoded block.

func Encode Uses

func Encode(dst, src []byte) ([]byte, error)

Encode returns the encoded form of src. The returned array may be a sub-slice of dst if it was large enough to hold the entire output.

Directories

PathSynopsis
fuzzer
lz4-example

Package lz4 imports 3 packages (graph) and is imported by 37 packages. Updated 2017-12-15. Refresh now. Tools for package owners.