()
| 567 | } |
| 568 | |
| 569 | func (d *Decoder) stashDecoder() { |
| 570 | if d.current.d != nil { |
| 571 | if debugDecoder { |
| 572 | printf("re-adding current decoder %p", d.current.d) |
| 573 | } |
| 574 | d.decoders <- d.current.d |
| 575 | d.current.d = nil |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | // Close will release all resources. |
| 580 | // It is NOT possible to reuse the decoder after this. |