base91

package
v0.0.0-...-8277694 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 4 Imported by: 0

README

base91 encoding implemented in go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

decode base91'd string to bytes returns error on invalid char

func Encode

func Encode(data []byte) []byte

encode bytes to base91'd string

Types

type Decoder

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

base91 decoder implements io.Reader

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Read

func (dec *Decoder) Read(data []byte) (n int, err error)

type Encoder

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

base91 encoder implements io.WriteCloser close to flush remaining data

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

create a new base91 encoder Encoder implements io.WriteCloser

func (*Encoder) Close

func (enc *Encoder) Close() (err error)

func (*Encoder) Write

func (enc *Encoder) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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