HasSuffix reports whether the buffer ends with the given suffix.
(suffix []byte)
| 53 | |
| 54 | // HasSuffix reports whether the buffer ends with the given suffix. |
| 55 | func (b *buffer) HasSuffix(suffix []byte) bool { |
| 56 | return bytes.HasSuffix(*b, suffix) |
| 57 | } |
| 58 | |
| 59 | // Remove removes the last n bytes. |
| 60 | func (b *buffer) Remove(n int) { |
no outgoing calls
no test coverage detected