rlelist

package
v0.0.0-...-a9872fa Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2014 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IteratorFn

type IteratorFn func(index uint, value interface{})

iterator function type delaration

type RleList

type RleList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *RleList

func (*RleList) Append

func (r *RleList) Append(value interface{}) uint

appends a row to the list

func (*RleList) Iterate

func (r *RleList) Iterate(f IteratorFn)

iterates each row in the RleList

func (*RleList) Read

func (r *RleList) Read(reader io.Reader) error

reads the RleList from a Reader, overwriting the current contents if an error occurs the RleList will be initialised to empty

func (*RleList) Write

func (r *RleList) Write(writer io.Writer) error

writes the rleList to a writer

Jump to

Keyboard shortcuts

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