(dAtA []byte)
| 1190 | } |
| 1191 | |
| 1192 | func (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 | |
| 1221 | func (m *GitCredentialResponse) Marshal() (dAtA []byte, err error) { |
| 1222 | size := m.Size() |
no test coverage detected