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

Method MarshalTo

pkg/cortexpb/timeseries.go:129–132  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

127}
128
129func (bs *LabelAdapter) MarshalTo(dAtA []byte) (int, error) {
130 size := bs.Size()
131 return bs.MarshalToSizedBuffer(dAtA[:size])
132}
133
134// MarshalTo implements proto.Marshaller.
135func (bs *LabelAdapter) MarshalToSizedBuffer(buf []byte) (n int, err error) {

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected