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

Method Len

buffer/buffer.go:83–85  ·  view source on GitHub ↗

Len returns the length of the underlying byte slice.

()

Source from the content-addressed store, hash-verified

81
82// Len returns the length of the underlying byte slice.
83func (b *Buffer) Len() int {
84 return len(b.bs)
85}
86
87// Cap returns the capacity of the underlying byte slice.
88func (b *Buffer) Cap() int {

Callers 15

TestDictFunction · 0.45
TestDictObjectFunction · 0.45
TestReplaceGlobalsFunction · 0.45
TestRedirectStdLogCallerFunction · 0.45
checkStdLogMessageFunction · 0.45
TestSugarWithCapturesFunction · 0.45
TestSugarPanicLoggingFunction · 0.45
TestSugarFatalLoggingFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestDictFunction · 0.36
TestDictObjectFunction · 0.36
TestReplaceGlobalsFunction · 0.36
TestRedirectStdLogCallerFunction · 0.36
checkStdLogMessageFunction · 0.36
TestSugarWithCapturesFunction · 0.36
TestSugarPanicLoggingFunction · 0.36
TestSugarFatalLoggingFunction · 0.36