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

Method Marshal

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

Source from the content-addressed store, hash-verified

2538}
2539
2540func (m *WriteRequest) Marshal() (dAtA []byte, err error) {
2541 size := m.Size()
2542 dAtA = make([]byte, size)
2543 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2544 if err != nil {
2545 return nil, err
2546 }
2547 return dAtA[:n], nil
2548}
2549
2550func (m *WriteRequest) MarshalTo(dAtA []byte) (int, error) {
2551 size := m.Size()

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95