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

Method Marshal

tempodb/backend/v1.pb.go:331–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329}
330
331func (m *BlockMeta) Marshal() (dAtA []byte, err error) {
332 size := m.Size()
333 dAtA = make([]byte, size)
334 n, err := m.MarshalToSizedBuffer(dAtA[:size])
335 if err != nil {
336 return nil, err
337 }
338 return dAtA[:n], nil
339}
340
341func (m *BlockMeta) MarshalTo(dAtA []byte) (int, error) {
342 size := m.Size()

Callers 3

TestRoundTripMetaFunction · 0.95

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by 3

TestRoundTripMetaFunction · 0.76