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

Method Marshal

pkg/querier/tripperware/query.pb.go:1964–1972  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1962 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
1963}
1964func (m *PrometheusResponse) Marshal() (dAtA []byte, err error) {
1965 size := m.Size()
1966 dAtA = make([]byte, size)
1967 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1968 if err != nil {
1969 return nil, err
1970 }
1971 return dAtA[:n], nil
1972}
1973
1974func (m *PrometheusResponse) MarshalTo(dAtA []byte) (int, error) {
1975 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected