MCPcopy Create free account
hub / github.com/dagger/dagger / Size

Method Size

engine/session/git/git.pb.go:1722–1736  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1720}
1721
1722func (m *ErrorInfo) Size() (n int) {
1723 if m == nil {
1724 return 0
1725 }
1726 var l int
1727 _ = l
1728 if m.Type != 0 {
1729 n += 1 + sovGit(uint64(m.Type))
1730 }
1731 l = len(m.Message)
1732 if l > 0 {
1733 n += 1 + l + sovGit(uint64(l))
1734 }
1735 return n
1736}
1737
1738func sovGit(x uint64) (n int) {
1739 return (math_bits.Len64(x|1) + 6) / 7

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovGitFunction · 0.85

Tested by

no test coverage detected