(newlen int)
| 26 | } |
| 27 | |
| 28 | func (c *valueArrayCache) grow(newlen int) { |
| 29 | oldcap := cap(*c) |
| 30 | if oldcap < newlen { |
| 31 | a := make([]reflectValueWrapper, newlen, growCap(newlen, len(*c), oldcap)) |
| 32 | copy(a, *c) |
| 33 | *c = a |
| 34 | } else { |
| 35 | *c = (*c)[:newlen] |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (c *valueArrayCache) put(idx int, w reflectValueWrapper) { |
| 40 | if len(*c) <= idx { |