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

Method startWrite

internal/buffer/buffer.go:214–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214func (b *Buffer) startWrite() {
215 if b.mode == UnsafeEscaped && !b.markerOpen {
216 b.startRedactable()
217 b.validUntil = len(b.buf)
218 }
219}
220
221// startRedactable adds the opening redaction marker.
222func (b *Buffer) startRedactable() {

Callers 4

WriteMethod · 0.95
WriteStringMethod · 0.95
WriteByteMethod · 0.95
WriteRuneMethod · 0.95

Calls 1

startRedactableMethod · 0.95

Tested by

no test coverage detected