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

Method MarshalToSizedBuffer

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

Source from the content-addressed store, hash-verified

1493}
1494
1495func (m *GitConfigEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1496 i := len(dAtA)
1497 _ = i
1498 var l int
1499 _ = l
1500 if len(m.Value) > 0 {
1501 i -= len(m.Value)
1502 copy(dAtA[i:], m.Value)
1503 i = encodeVarintGit(dAtA, i, uint64(len(m.Value)))
1504 i--
1505 dAtA[i] = 0x12
1506 }
1507 if len(m.Key) > 0 {
1508 i -= len(m.Key)
1509 copy(dAtA[i:], m.Key)
1510 i = encodeVarintGit(dAtA, i, uint64(len(m.Key)))
1511 i--
1512 dAtA[i] = 0xa
1513 }
1514 return len(dAtA) - i, nil
1515}
1516
1517func (m *ErrorInfo) Marshal() (dAtA []byte, err error) {
1518 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