MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Size

Method Size

postgres/parser/json/json.go:692–698  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

690}
691
692func (j jsonArray) Size() uintptr {
693 valSize := sliceHeaderSize + uintptr(cap(j))*jsonInterfaceSize
694 for _, elem := range j {
695 valSize += elem.Size()
696 }
697 return valSize
698}
699
700func (j jsonObject) Size() uintptr {
701 valSize := sliceHeaderSize + uintptr(cap(j))*keyValuePairSize

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.65

Tested by

no test coverage detected