MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeSyncBuffer

Function MakeSyncBuffer

pkg/util/syncbuf/syncbuf.go:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func MakeSyncBuffer() *SyncBuffer {
18 return &SyncBuffer{
19 lock: sync.Mutex{},
20 buf: new(bytes.Buffer),
21 }
22}
23
24// spawns a goroutine to copy the reader to the buffer
25func MakeSyncBufferFromReader(r io.Reader) *SyncBuffer {

Callers 2

RunSimpleCommandFunction · 0.92
MakeSyncBufferFromReaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected