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

Method Marshal

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

Source from the content-addressed store, hash-verified

2893}
2894
2895func (m *StreamWriteRequest) Marshal() (dAtA []byte, err error) {
2896 size := m.Size()
2897 dAtA = make([]byte, size)
2898 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2899 if err != nil {
2900 return nil, err
2901 }
2902 return dAtA[:n], nil
2903}
2904
2905func (m *StreamWriteRequest) MarshalTo(dAtA []byte) (int, error) {
2906 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected