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

Method SafeString

builder/builder.go:104–107  ·  view source on GitHub ↗

SafeString is part of the SafeWriter interface.

(s i.SafeString)

Source from the content-addressed store, hash-verified

102
103// SafeString is part of the SafeWriter interface.
104func (b *StringBuilder) SafeString(s i.SafeString) {
105 b.SetMode(ib.SafeEscaped)
106 _, _ = b.Buffer.WriteString(string(s))
107}
108
109// SafeInt is part of the SafeWriter interface.
110func (b *StringBuilder) SafeInt(s i.SafeInt) {

Callers 2

TestBuilderFunction · 0.95
TestMixedWritesFunction · 0.95

Calls 2

SetModeMethod · 0.80
WriteStringMethod · 0.45

Tested by 2

TestBuilderFunction · 0.76
TestMixedWritesFunction · 0.76