RedactableString returns the bytes in the buffer.
()
| 68 | |
| 69 | // RedactableString returns the bytes in the buffer. |
| 70 | func (b Buffer) RedactableString() m.RedactableString { |
| 71 | // NB: we're dependent on the fact this is a copy of the original |
| 72 | // buffer. The finalize() method should not be called |
| 73 | // in a conceputally read-only accessor like RedactableString(). |
| 74 | b.finalize() |
| 75 | return m.RedactableString(b.buf) |
| 76 | } |
| 77 | |
| 78 | // String implemens fmt.Stringer. |
| 79 | func (b Buffer) String() string { |