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

Method WriteString

builder/builder.go:71–74  ·  view source on GitHub ↗

WriteString shadows the ib.Buffer.WriteString method.

(s string)

Source from the content-addressed store, hash-verified

69
70// WriteString shadows the ib.Buffer.WriteString method.
71func (b *StringBuilder) WriteString(s string) (int, error) {
72 b.SetMode(ib.UnsafeEscaped)
73 return b.Buffer.WriteString(s)
74}
75
76// WriteByte shadows the ib.Buffer.WriteByte method.
77func (b *StringBuilder) WriteByte(c byte) error {

Callers 3

TestMixedWritesFunction · 0.95
SafeStringMethod · 0.45
UnsafeStringMethod · 0.45

Calls 1

SetModeMethod · 0.80

Tested by 1

TestMixedWritesFunction · 0.76