base91

package module
v0.0.0-...-eaaf867 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferSize int = (((32 * 1024) - 2) << 4) / 29
View Source
var LineBreakAfter uint = 76
View Source
var Split = func(data []byte, atEOF bool) (advance int, token []byte, err error) {
	l := len(data)

	if atEOF && l > 0 {
		return l, data[:l], nil
	}

	if l < maxTokenSize {
		return 0, nil, nil
	}

	return maxTokenSize, data[0:maxTokenSize], nil
}

Split function for input

Functions

func Decode

func Decode(data []byte) ([]byte, error)

Decode takes base91 data and returns it in decoded form.

func Encode

func Encode(data []byte) ([]byte, error)

Encode takes data and returns it in base91 encoded form.

func NewDecoder

func NewDecoder(src io.Reader) io.Reader

NewDecoder takes an io.Reader as source to read encoded data from.

func NewEncoder

func NewEncoder(dst io.Writer) io.WriteCloser

NewEncoder takes an io.Writer as destination to write encoded data to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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