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

Method Size

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

Source from the content-addressed store, hash-verified

1618 return n
1619}
1620func (m *CredentialInfo) Size() (n int) {
1621 if m == nil {
1622 return 0
1623 }
1624 var l int
1625 _ = l
1626 l = len(m.Protocol)
1627 if l > 0 {
1628 n += 1 + l + sovGit(uint64(l))
1629 }
1630 l = len(m.Host)
1631 if l > 0 {
1632 n += 1 + l + sovGit(uint64(l))
1633 }
1634 l = len(m.Username)
1635 if l > 0 {
1636 n += 1 + l + sovGit(uint64(l))
1637 }
1638 l = len(m.Password)
1639 if l > 0 {
1640 n += 1 + l + sovGit(uint64(l))
1641 }
1642 return n
1643}
1644
1645func (m *GitConfigRequest) Size() (n int) {
1646 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovGitFunction · 0.85

Tested by

no test coverage detected