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

Method Marshal

kv/memberlist/kv.pb.go:317–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315}
316
317func (m *KeyValuePair) Marshal() (dAtA []byte, err error) {
318 size := m.Size()
319 dAtA = make([]byte, size)
320 n, err := m.MarshalToSizedBuffer(dAtA[:size])
321 if err != nil {
322 return nil, err
323 }
324 return dAtA[:n], nil
325}
326
327func (m *KeyValuePair) MarshalTo(dAtA []byte) (int, error) {
328 size := m.Size()

Callers 8

encodeMessageFunction · 0.95
broadcastNewValueMethod · 0.95
LocalStateMethod · 0.95
EncodeMethod · 0.45
marshalKeyValuePairFunction · 0.45
marshalStateFunction · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by 3

encodeMessageFunction · 0.76
marshalKeyValuePairFunction · 0.36
marshalStateFunction · 0.36