MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / GrowKeyCache

Method GrowKeyCache

internal/types/types.go:389–394  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

387}
388
389func (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
396func (ret *J2TStateMachine) GrowFieldCache(n int) {
397 c := cap(ret.FieldCache) + n

Callers 1

handleErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected