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

Method Marshal

pkg/cortexpb/cortex.pb.go:2949–2957  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2947}
2948
2949func (m *WriteResponse) Marshal() (dAtA []byte, err error) {
2950 size := m.Size()
2951 dAtA = make([]byte, size)
2952 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2953 if err != nil {
2954 return nil, err
2955 }
2956 return dAtA[:n], nil
2957}
2958
2959func (m *WriteResponse) MarshalTo(dAtA []byte) (int, error) {
2960 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected