lz4

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockUncompress

func BlockUncompress(src, dst []byte) (err error)

BlockUncompress uncompresses a lz4 block.

func CopyN

func CopyN(dst, src *Buffer, n int) (err error)

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func (*Buffer) AtTheEnd

func (b *Buffer) AtTheEnd() bool

func (*Buffer) Next

func (b *Buffer) Next(n int) (p []byte, err error)

Next return a slice of underlying buf for reading/writing.

func (*Buffer) ReadByte

func (b *Buffer) ReadByte() (v byte, err error)

func (*Buffer) ReadExtraLength

func (b *Buffer) ReadExtraLength() (l int, err error)

func (*Buffer) ReadOffset

func (b *Buffer) ReadOffset() (offset int, err error)

func (*Buffer) ReadToken

func (b *Buffer) ReadToken() (literalLen, matchLen int, err error)

func (*Buffer) WriteMatchedLiteral

func (b *Buffer) WriteMatchedLiteral(offset, length int) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL