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

Method Marshal

pkg/cortexpb/cortex.pb.go:3495–3503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3493 return len(dAtA) - i, nil
3494}
3495func (m *BucketSpan) Marshal() (dAtA []byte, err error) {
3496 size := m.Size()
3497 dAtA = make([]byte, size)
3498 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3499 if err != nil {
3500 return nil, err
3501 }
3502 return dAtA[:n], nil
3503}
3504
3505func (m *BucketSpan) MarshalTo(dAtA []byte) (int, error) {
3506 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected