rle

package
v0.0.0-...-27d64f3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Reader is an io.Reader that decode RLE input from a wrapped reader

func NewReader

func NewReader(r io.Reader) *Reader

NewReader creates a new Reader wrapping r

func (*Reader) Read

func (z *Reader) Read(p []byte) (n int, err error)

Read reads and decodes bytes from the wrapped stream, writing up to len(p) bytes into p

func (*Reader) WriteTo

func (z *Reader) WriteTo(w io.Writer) (n int64, err error)

WriteTo writes a decoded form of the wrapped input stream to w

type Writer

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

Writer is an io.Writer that encode RLE input to a wrapped writer

func NewWriter

func NewWriter(w io.Writer) *Writer

NewWriter creates a new Writer wrapping w

func (*Writer) ReadFrom

func (z *Writer) ReadFrom(r io.Reader) (n int64, err error)

ReadFrom reads input from r and writes a RLE encoded stream to the wrapped writer

func (*Writer) Write

func (z *Writer) Write(p []byte) (n int, err error)

Write writes and encodes bytes to the wrapped stream, reading up to len(p) bytes from p

Jump to

Keyboard shortcuts

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