MCPcopy Create free account
hub / github.com/cortexproject/cortex / XXX_Marshal

Method XXX_Marshal

pkg/cortexpb/cortex.pb.go:1292–1303  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

1290 return m.Unmarshal(b)
1291}
1292func (m *BucketSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1293 if deterministic {
1294 return xxx_messageInfo_BucketSpan.Marshal(b, m, deterministic)
1295 } else {
1296 b = b[:cap(b)]
1297 n, err := m.MarshalToSizedBuffer(b)
1298 if err != nil {
1299 return nil, err
1300 }
1301 return b[:n], nil
1302 }
1303}
1304func (m *BucketSpan) XXX_Merge(src proto.Message) {
1305 xxx_messageInfo_BucketSpan.Merge(m, src)
1306}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected