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

Method String

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

String implemens fmt.Stringer.

()

Source from the content-addressed store, hash-verified

77
78// String implemens fmt.Stringer.
79func (b Buffer) String() string {
80 // NB: we're dependent on the fact this is a copy of the original
81 // buffer. The finalize() method should not be called
82 // in a conceputally read-only accessor like String().
83 b.finalize()
84 return m.RedactableString(b.buf).StripMarkers()
85}
86
87// TakeRedactableBytes returns the buffer
88// contents and reinitializes the buffer. This saves

Callers

nothing calls this directly

Calls 3

finalizeMethod · 0.95
RedactableStringMethod · 0.80
StripMarkersMethod · 0.45

Tested by

no test coverage detected