Reset clears the current batch text and replaces it with new runes.
(r []rune)
| 290 | |
| 291 | // Reset clears the current batch text and replaces it with new runes. |
| 292 | func (b *Batcher) Reset(r []rune) { |
| 293 | b.buffer, b.length = nil, 0 |
| 294 | b.quote = 0 |
| 295 | b.comment = false |
| 296 | if r != nil { |
| 297 | b.raw, b.rawLen = r, len(r) |
| 298 | } else { |
| 299 | b.rawLen = 0 |
| 300 | } |
| 301 | } |
no outgoing calls