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

Struct Buffer

syncio/buffer.go:11–14  ·  view source on GitHub ↗

Buffer is a wrapper on top of bytes.Buffer, but with a RWMutex to protect concurrent calls.

Source from the content-addressed store, hash-verified

9
10// Buffer is a wrapper on top of bytes.Buffer, but with a RWMutex to protect concurrent calls.
11type Buffer struct {
12 l sync.RWMutex
13 b bytes.Buffer
14}
15
16func (rw *Buffer) Read(p []byte) (n int, err error) {
17 rw.l.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected