package lz4
import "github.com/ClickHouse/clickhouse-go/lib/lz4"
Index ¶
- Constants
- Variables
- func CompressBound(isize int) int
- func Decode(dst, src []byte) (int, error)
- func Encode(dst, src []byte) (compressedSize int, error error)
Constants ¶
const ( // MaxInputSize is the largest buffer than can be compressed in a single block MaxInputSize = 0x7E000000 )
Variables ¶
var ( // ErrTooLarge indicates the input buffer was too large ErrTooLarge = errors.New("input too large") ErrEncodeTooSmall = errors.New("encode buffer too small") )
Functions ¶
func CompressBound ¶
CompressBound returns the maximum length of a lz4 block
func Decode ¶
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 ¶
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.
Source Files ¶
- Version
- v1.5.4 (latest)
- Published
- Feb 8, 2022
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.