Initialize buffer size each streaming decoding

This commit is contained in:
Masaaki Goshima 2021-02-15 18:40:59 +09:00
parent cbe680fc5b
commit 1f75cdd023
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ func (d *Decoder) Decode(v interface{}) error {
if err := dec.decodeStream(s, header.ptr); err != nil {
return err
}
s.reset()
s.bufSize = initBufSize
return nil
}