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

Function getTotalSize

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

Source from the content-addressed store, hash-verified

402}
403
404func getTotalSize(si *StructInfo) uint32 {
405 rv := uint32(si.Typ.Size())
406 for _, f := range si.Fields {
407 rv += getTypeSize(f.Typ)
408 }
409 return rv
410}
411
412func getBufGrowSize(si *StructInfo) uint32 {
413

Callers 1

getBufGrowSizeFunction · 0.85

Calls 1

getTypeSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…