ResetDict will reset and set a dictionary if not nil
(d *dict, singleBlock bool)
| 791 | |
| 792 | // ResetDict will reset and set a dictionary if not nil |
| 793 | func (e *fastEncoder) Reset(d *dict, singleBlock bool) { |
| 794 | e.resetBase(d, singleBlock) |
| 795 | if d != nil { |
| 796 | panic("fastEncoder: Reset with dict") |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | func (e *fastEncoder) ResetPrefix(prefix []byte) { |
| 801 | e.resetBasePrefix(prefix) |