MCPcopy Create free account
hub / github.com/pquerna/ffjson / getBufGrowSize

Function getBufGrowSize

inception/encoder.go:412–417  ·  view source on GitHub ↗
(si *StructInfo)

Source from the content-addressed store, hash-verified

410}
411
412func getBufGrowSize(si *StructInfo) uint32 {
413
414 // TOOD(pquerna): automatically calc a better grow size based on history
415 // of a struct.
416 return p2(getTotalSize(si))
417}
418
419func isIntish(t reflect.Type) bool {
420 if t.Kind() >= reflect.Int && t.Kind() <= reflect.Uintptr {

Callers

nothing calls this directly

Calls 2

p2Function · 0.85
getTotalSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…