MCPcopy Create free account
hub / github.com/cockroachdb/redact / Len

Method Len

internal/buffer/buffer.go:116–120  ·  view source on GitHub ↗

Len returns the number of bytes in the buffer.

()

Source from the content-addressed store, hash-verified

114
115// Len returns the number of bytes in the buffer.
116func (b *Buffer) Len() int {
117 copy := *b
118 copy.finalize()
119 return len(copy.buf)
120}
121
122// Cap returns the capacity of the buffer's underlying byte slice,
123// that is, the total space allocated for the buffer's data.

Callers

nothing calls this directly

Calls 1

finalizeMethod · 0.80

Tested by

no test coverage detected