scratch

package
v0.0.0-...-393bab8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scratch

type Scratch struct {
	Data []byte
	// contains filtered or unexported fields
}

func (*Scratch) Add

func (s *Scratch) Add(c byte)

append single byte to scratch buffer

func (*Scratch) AddRune

func (s *Scratch) AddRune(r rune) int

append encoded rune to scratch buffer

func (*Scratch) Bytes

func (s *Scratch) Bytes() []byte

bytes returns the written contents of scratch buffer

func (*Scratch) Reset

func (s *Scratch) Reset()

reset scratch buffer

Jump to

Keyboard shortcuts

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