MCPcopy Create free account
hub / github.com/celer-pkg/celer / LockedBuffer

Struct LockedBuffer

pkgs/fileio/locker_buffer.go:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6)
7
8type LockedBuffer struct {
9 mutex sync.Mutex
10 buffer bytes.Buffer
11}
12
13func (l *LockedBuffer) Write(p []byte) (int, error) {
14 l.mutex.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected