(n int)
| 387 | } |
| 388 | |
| 389 | func (ret *J2TStateMachine) GrowKeyCache(n int) { |
| 390 | c := cap(ret.KeyCache) + n*resizeFactor |
| 391 | tmp := make([]byte, len(ret.KeyCache), c) |
| 392 | copy(tmp, ret.KeyCache) |
| 393 | ret.KeyCache = tmp |
| 394 | } |
| 395 | |
| 396 | func (ret *J2TStateMachine) GrowFieldCache(n int) { |
| 397 | c := cap(ret.FieldCache) + n |