WriteByte writes a single byte to the buffer.
(p byte)
| 46 | |
| 47 | // WriteByte writes a single byte to the buffer. |
| 48 | func (b *buffer) WriteByte(p byte) error { |
| 49 | b.grow(1) |
| 50 | *b = append(*b, p) |
| 51 | return nil |
| 52 | } |
| 53 | |
| 54 | // HasSuffix reports whether the buffer ends with the given suffix. |
| 55 | func (b *buffer) HasSuffix(suffix []byte) bool { |
no test coverage detected