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

Method Marshal

pkg/ring/ring.pb.go:420–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418}
419
420func (m *InstanceDesc) Marshal() (dAtA []byte, err error) {
421 size := m.Size()
422 dAtA = make([]byte, size)
423 n, err := m.MarshalToSizedBuffer(dAtA[:size])
424 if err != nil {
425 return nil, err
426 }
427 return dAtA[:n], nil
428}
429
430func (m *InstanceDesc) MarshalTo(dAtA []byte) (int, error) {
431 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected