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

Method Write

internal/buffer/buffer.go:1323–1326  ·  view source on GitHub ↗
(bytes []byte)

Source from the content-addressed store, hash-verified

1321}
1322
1323func (b *Buffer) Write(bytes []byte) (n int, err error) {
1324 b.EventHandler.InsertBytes(b.End(), bytes)
1325 return len(bytes), nil
1326}
1327
1328func (b *Buffer) updateDiff(synchronous bool) {
1329 b.diffLock.Lock()

Callers 3

BytesMethod · 0.45
calcHashMethod · 0.45
SafeWriteFunction · 0.45

Calls 2

InsertBytesMethod · 0.80
EndMethod · 0.45

Tested by

no test coverage detected