MCPcopy
hub / github.com/grafana/dskit / Marshal

Method Marshal

ring/ring.pb.go:503–511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501}
502
503func (m *InstanceDesc) Marshal() (dAtA []byte, err error) {
504 size := m.Size()
505 dAtA = make([]byte, size)
506 n, err := m.MarshalToSizedBuffer(dAtA[:size])
507 if err != nil {
508 return nil, err
509 }
510 return dAtA[:n], nil
511}
512
513func (m *InstanceDesc) MarshalTo(dAtA []byte) (int, error) {
514 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected