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

Method Marshal

ring/partition_ring_desc.pb.go:558–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

556 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
557}
558func (m *PartitionRingDesc) Marshal() (dAtA []byte, err error) {
559 size := m.Size()
560 dAtA = make([]byte, size)
561 n, err := m.MarshalToSizedBuffer(dAtA[:size])
562 if err != nil {
563 return nil, err
564 }
565 return dAtA[:n], nil
566}
567
568func (m *PartitionRingDesc) MarshalTo(dAtA []byte) (int, error) {
569 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected