MCPcopy Create free account
hub / github.com/araddon/qlbridge / Size

Method Size

expr/node.pb.go:938–971  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

936 return offset + 1
937}
938func (m *ExprPb) Size() (n int) {
939 var l int
940 _ = l
941 if m.Op != nil {
942 n += 1 + sovNode(uint64(*m.Op))
943 }
944 if len(m.Args) > 0 {
945 for _, e := range m.Args {
946 l = e.Size()
947 n += 1 + l + sovNode(uint64(l))
948 }
949 }
950 if m.Ident != nil {
951 l = len(*m.Ident)
952 n += 1 + l + sovNode(uint64(l))
953 }
954 if m.Val != nil {
955 l = len(*m.Val)
956 n += 1 + l + sovNode(uint64(l))
957 }
958 if m.Ival != nil {
959 n += 1 + sovNode(uint64(*m.Ival))
960 }
961 if m.Bval != nil {
962 n += 2
963 }
964 if m.Fval != nil {
965 n += 9
966 }
967 if m.XXX_unrecognized != nil {
968 n += len(m.XXX_unrecognized)
969 }
970 return n
971}
972
973func (m *NodePb) Size() (n int) {
974 var l int

Callers 15

MarshalMethod · 0.95
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
MarshalToMethod · 0.45
SizeMethod · 0.45
SizeMethod · 0.45

Calls 1

sovNodeFunction · 0.85

Tested by

no test coverage detected