MCPcopy
hub / github.com/micro-editor/micro / LineBytes

Method LineBytes

pkg/highlight/highlighter.go:59–59  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

57// LineStates is an interface for a buffer-like object which can also store the states and matches for every line
58type LineStates interface {
59 LineBytes(n int) []byte
60 LinesNum() int
61 State(lineN int) State
62 SetState(lineN int, s State)

Callers 15

HighlightStatesMethod · 0.65
HighlightMatchesMethod · 0.65
ReHighlightStatesMethod · 0.65
ReHighlightLineMethod · 0.65
getStartInfoMethod · 0.65
displayBufferMethod · 0.65
getVLocFromLocMethod · 0.65
getLocFromVLocMethod · 0.65
getRowCountMethod · 0.65
VLocFromLocMethod · 0.65
LocFromVLocMethod · 0.65
LocFromVisualMethod · 0.65

Implementers 1

LineArrayinternal/buffer/line_array.go

Calls

no outgoing calls

Tested by 2

checkFunction · 0.52
benchReadFunction · 0.52