Reset the current write buffer and its offset
()
| 177 | |
| 178 | // Reset the current write buffer and its offset |
| 179 | func (b *Buffer) Reset() { |
| 180 | b.size = 0 |
| 181 | b.offset = 0 |
| 182 | } |
| 183 | |
| 184 | // Shift the current write buffer offset |
| 185 | func (b *Buffer) Shift(offset int) { |
no outgoing calls