contentBuffer

package
v0.0.0-...-377f66c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 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 ContentBuffer

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

func NewContentBuffer

func NewContentBuffer(bufferSize int, emitter func(*EmitterData) bool) ContentBuffer

func (*ContentBuffer) Add

func (cb *ContentBuffer) Add(b byte) error

func (*ContentBuffer) AddArray

func (cb *ContentBuffer) AddArray(b []byte) error

func (*ContentBuffer) Backup

func (cb *ContentBuffer) Backup(step int)

func (*ContentBuffer) Emit

func (cb *ContentBuffer) Emit(ed *EmitterData) bool

func (*ContentBuffer) Reset

func (cb *ContentBuffer) Reset()

type EmitterData

type EmitterData struct {
	Content   string
	LineStart uint64
	LineEnd   uint64
	NodePath  string
}

func (*EmitterData) Reset

func (ed *EmitterData) Reset()

Jump to

Keyboard shortcuts

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