MCPcopy
hub / github.com/grafana/dskit / newThreadsafeBuffer

Function newThreadsafeBuffer

log/buffered.go:155–159  ·  view source on GitHub ↗

newThreadsafeBuffer returns a new threadsafeBuffer wrapping the given bytes.Buffer.

(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

153
154// newThreadsafeBuffer returns a new threadsafeBuffer wrapping the given bytes.Buffer.
155func newThreadsafeBuffer(buf *bytes.Buffer) *threadsafeBuffer {
156 return &threadsafeBuffer{
157 buf: buf,
158 }
159}

Callers 2

WithPrellocatedBufferFunction · 0.85
NewBufferedLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected