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

Method Line

internal/buffer/buffer.go:1319–1321  ·  view source on GitHub ↗

Line returns the string representation of the given line number

(i int)

Source from the content-addressed store, hash-verified

1317
1318// Line returns the string representation of the given line number
1319func (b *Buffer) Line(i int) string {
1320 return string(b.LineBytes(i))
1321}
1322
1323func (b *Buffer) Write(bytes []byte) (n int, err error) {
1324 b.EventHandler.InsertBytes(b.End(), bytes)

Callers 4

ByteOffsetFunction · 0.80
checkFunction · 0.80
benchReadFunction · 0.80
benchEditFunction · 0.80

Calls 1

LineBytesMethod · 0.65

Tested by 3

checkFunction · 0.64
benchReadFunction · 0.64
benchEditFunction · 0.64