MCPcopy
hub / github.com/uber-go/zap / Bytes

Method Bytes

buffer/buffer.go:93–95  ·  view source on GitHub ↗

Bytes returns a mutable reference to the underlying byte slice.

()

Source from the content-addressed store, hash-verified

91
92// Bytes returns a mutable reference to the underlying byte slice.
93func (b *Buffer) Bytes() []byte {
94 return b.bs
95}
96
97// String returns a string copy of the underlying byte slice.
98func (b *Buffer) String() string {

Callers 13

TestSlogtestFunction · 0.95
flushMethod · 0.80
encodeReflectedMethod · 0.80
CloneMethod · 0.80
EncodeEntryMethod · 0.80
addElementSeparatorMethod · 0.80
zapEncodeFunction · 0.80
fuzzSafeAppendStringLikeFunction · 0.80
writeContextMethod · 0.80
WriteMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestSlogtestFunction · 0.76
zapEncodeFunction · 0.64
fuzzSafeAppendStringLikeFunction · 0.64
TestBufferWritesFunction · 0.64