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

Method MarshalToSizedBuffer

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

Source from the content-addressed store, hash-verified

1425}
1426
1427func (m *GitConfigResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1428 i := len(dAtA)
1429 if m.Error != nil {
1430 {
1431 size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
1432 if err != nil {
1433 return 0, err
1434 }
1435 i -= size
1436 i = encodeVarintGit(dAtA, i, uint64(size))
1437 }
1438 i--
1439 dAtA[i] = 0x12
1440 }
1441 return len(dAtA) - i, nil
1442}
1443func (m *GitConfig) Marshal() (dAtA []byte, err error) {
1444 size := m.Size()
1445 dAtA = make([]byte, size)

Callers 1

MarshalToMethod · 0.95

Calls 2

encodeVarintGitFunction · 0.85
MarshalToSizedBufferMethod · 0.45

Tested by

no test coverage detected