MCPcopy
hub / github.com/docker/compose / Bytes

Method Bytes

pkg/utils/safebuffer.go:58–62  ·  view source on GitHub ↗

Bytes is a thread safe version of bytes.Buffer::Bytes

()

Source from the content-addressed store, hash-verified

56
57// Bytes is a thread safe version of bytes.Buffer::Bytes
58func (b *SafeBuffer) Bytes() []byte {
59 b.m.RLock()
60 defer b.m.RUnlock()
61 return b.b.Bytes()
62}
63
64// RequireEventuallyContains is a thread safe eventual checker for the buffer content
65func (b *SafeBuffer) RequireEventuallyContains(t testing.TB, v string) {

Callers 15

WriteMethod · 0.80
CloseMethod · 0.80
getPluginMetadataMethod · 0.80
parseSecurityOptsFunction · 0.80
WriteMethod · 0.80
writeEntryMethod · 0.80
TestJsonWriter_EventFunction · 0.80

Calls

no outgoing calls