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

Method Write

syncio/buffer.go:22–26  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

20}
21
22func (rw *Buffer) Write(p []byte) (n int, err error) {
23 rw.l.Lock()
24 defer rw.l.Unlock()
25 return rw.b.Write(p)
26}
27
28func (rw *Buffer) ReadFrom(r io.Reader) (n int64, err error) {
29 rw.l.Lock()

Callers 10

TestBasicOperationsFunction · 0.95
TestRuneIOFunction · 0.95
TestGrowFunction · 0.95
TestBufferGrowthFunction · 0.95
fillBytesFunction · 0.45
TestThrottlerMiddlewareFunction · 0.45
RunMethod · 0.45

Calls

no outgoing calls

Tested by 9

TestBasicOperationsFunction · 0.76
TestRuneIOFunction · 0.76
TestGrowFunction · 0.76
TestBufferGrowthFunction · 0.76
fillBytesFunction · 0.36
TestThrottlerMiddlewareFunction · 0.36