GetDecoder returns a decoder configured to read from r.
(r io.Reader)
| 56 | |
| 57 | // GetDecoder returns a decoder configured to read from r. |
| 58 | func GetDecoder(r io.Reader) *Decoder { |
| 59 | d := decPool.Get().(*Decoder) |
| 60 | d.Reset(r) |
| 61 | return d |
| 62 | } |
| 63 | |
| 64 | // PutDecoder returns a decoder to the pool. |
| 65 | func PutDecoder(d *Decoder) { |