Append appends buf to this buffer.
(buf []byte)
| 38 | |
| 39 | // Append appends buf to this buffer. |
| 40 | func (b *buffer) Append(buf []byte) { |
| 41 | if cap(b.buf)-b.l <= len(buf) { |
| 42 | b.buf = grow(b.buf, len(buf)) |
| 43 | } |
| 44 | copy(b.buf[b.l:], buf) |
| 45 | b.l += len(buf) |
| 46 | } |
| 47 | |
| 48 | // AppendRune writes rune to this buffer. |
| 49 | func (b *buffer) AppendRune(r rune) { |
no test coverage detected