code: func (dec *Decoder) expandSlice(length int) {
  	n := reflect.MakeSlice(dec.curr.Type(), length, length)
  	reflect.Copy(n, dec.curr)
  	dec.curr.Set(n)
  }
docs: // expandSlice expands the length and capacity of the current slice