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

Method MarshalToSizedBuffer

engine/session/git/git.pb.go:1192–1219  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

1190}
1191
1192func (m *GitCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1193 i := len(dAtA)
1194 _ = i
1195 var l int
1196 _ = l
1197 if len(m.Path) > 0 {
1198 i -= len(m.Path)
1199 copy(dAtA[i:], m.Path)
1200 i = encodeVarintGit(dAtA, i, uint64(len(m.Path)))
1201 i--
1202 dAtA[i] = 0x1a
1203 }
1204 if len(m.Host) > 0 {
1205 i -= len(m.Host)
1206 copy(dAtA[i:], m.Host)
1207 i = encodeVarintGit(dAtA, i, uint64(len(m.Host)))
1208 i--
1209 dAtA[i] = 0x12
1210 }
1211 if len(m.Protocol) > 0 {
1212 i -= len(m.Protocol)
1213 copy(dAtA[i:], m.Protocol)
1214 i = encodeVarintGit(dAtA, i, uint64(len(m.Protocol)))
1215 i--
1216 dAtA[i] = 0xa
1217 }
1218 return len(dAtA) - i, nil
1219}
1220
1221func (m *GitCredentialResponse) Marshal() (dAtA []byte, err error) {
1222 size := m.Size()

Callers 3

XXX_MarshalMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

encodeVarintGitFunction · 0.85

Tested by

no test coverage detected