helper

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSource    = errors.New("invalid source")
	ErrClosedResource   = errors.New("closed resource")
	ErrInvalidOperation = errors.New("invalid operation")
)

Functions

This section is empty.

Types

type Helper

type Helper interface {
	io.ReadWriteCloser
}

func New

func New(algo arccmp.Algorithm, ope Operation, src any) (h Helper, err error)

func NewReader

func NewReader(algo arccmp.Algorithm, ope Operation, src io.Reader) (Helper, error)

func NewWriter

func NewWriter(algo arccmp.Algorithm, ope Operation, dst io.Writer) (Helper, error)

type Operation

type Operation uint8
const (
	Compress Operation = iota
	Decompress
)

Jump to

Keyboard shortcuts

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