MCPcopy Create free account
hub / github.com/Shopify/goose / Reset

Method Reset

syncio/buffer.go:100–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func (rw *Buffer) Reset() {
101 rw.l.Lock()
102 rw.b.Reset()
103 rw.l.Unlock()
104}
105
106func (rw *Buffer) Truncate(n int) {
107 rw.l.Lock()

Callers 5

TestBasicOperationsFunction · 0.95
TestRuneIOFunction · 0.95
BenchmarkWriteByteFunction · 0.95
BenchmarkWriteRuneFunction · 0.95
RunAndWaitMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestBasicOperationsFunction · 0.76
TestRuneIOFunction · 0.76
BenchmarkWriteByteFunction · 0.76
BenchmarkWriteRuneFunction · 0.76