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

Method RedactableBytes

internal/buffer/buffer.go:61–67  ·  view source on GitHub ↗

RedactableBytes returns the bytes in the buffer.

()

Source from the content-addressed store, hash-verified

59
60// RedactableBytes returns the bytes in the buffer.
61func (b Buffer) RedactableBytes() m.RedactableBytes {
62 // NB: we're dependent on the fact this is a copy of the original
63 // buffer. The finalize() method should not be called
64 // in a conceputally read-only accessor like RedactableBytes().
65 b.finalize()
66 return m.RedactableBytes(b.buf)
67}
68
69// RedactableString returns the bytes in the buffer.
70func (b Buffer) RedactableString() m.RedactableString {

Callers 5

checkEqualMethod · 0.95
Example_newlinesFunction · 0.95
EscapeBytesFunction · 0.80
TakeRedactableBytesMethod · 0.80
TestBuilderFunction · 0.80

Calls 1

finalizeMethod · 0.95

Tested by 3

checkEqualMethod · 0.76
Example_newlinesFunction · 0.76
TestBuilderFunction · 0.64