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

Method Marshal

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

Source from the content-addressed store, hash-verified

2100}
2101
2102func (m *CachedResponse) Marshal() (dAtA []byte, err error) {
2103 size := m.Size()
2104 dAtA = make([]byte, size)
2105 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2106 if err != nil {
2107 return nil, err
2108 }
2109 return dAtA[:n], nil
2110}
2111
2112func (m *CachedResponse) MarshalTo(dAtA []byte) (int, error) {
2113 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected